[eluser]steelaz[/eluser]
This forum is for CI add-ons libraries etc., next time please post in "Help, is this a bug?" forum.
Cookies are read by the browser only when page is being loaded, so if you send a cookie using JavaScript, you will be able to access it from CI on the next page load only.
If you need to call controller method from your view, without refreshing the page, you should use AJAX. Using jQuery this call would look something like this:
Code:
$.post("http://www.example.com/controller/method/", { my_data: "1" } );