set_cookie not working |
[eluser]ibnclaudius[/eluser]
The cookies are not being set. Is there something wrong? Code: public function set_cookie($email)
[eluser]Bhashkar Yadav[/eluser]
are you loading cookie helper Code: $this->load->helper('cookie');
[eluser]ibnclaudius[/eluser]
Yes. I am trying to fetch the cookie like this: Code: if($this->input->cookie('name') === 'remember')
[eluser]Bhashkar Yadav[/eluser]
please take a reference from here http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]CroNiX[/eluser]
Code: if($this->input->cookie('name') === 'remember')
[eluser]Aken[/eluser]
The domain of the cookie should be left empty on localhost environments.
[eluser]ibnclaudius[/eluser]
I made the changes, but for some reason the "remember me" is not working. Look: Code: public function __construct() Code: private function _set_cookie($email)
[eluser]ibnclaudius[/eluser]
I tried this for test: Code: <?php But give this error: Quote:A PHP Error was encountered |
Welcome Guest, Not a member yet? Register Sign In |