CodeIgniter Forums
Problem in User Guide, set_cookie - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Problem in User Guide, set_cookie (/showthread.php?tid=34918)



Problem in User Guide, set_cookie - El Forum - 10-13-2010

[eluser]timotheus[/eluser]
Helped from:
http://ellislab.com/forums/viewreply/804985/

The manual states that the set_cookie method only requires the cookie name and cookie value, but this is incorrect. You MUST specify an expiration time, otherwise it creates the cookie that expired 24 hours ago.

I could be missing something, but my cookie section of the config.php file is the default.