[eluser]mohsin917[/eluser]
I figured out half problem..
Actually the problem is not in setting a cookie.
problem is in get_cookie.
now this code works.
Code:
$this->load->helper('cookie');
set_cookie('loogedin', 'this is my value mohsin', 60);
echo $_COOKIE["loogedin"];
display the exact value and expire after 60 seconds..
But why this below line is not working....
Code:
echo get_cookie('loggedin');