![]() |
FIY! CI session is saved in $_COOKIE not in $_SESSION - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: FIY! CI session is saved in $_COOKIE not in $_SESSION (/showthread.php?tid=25742) |
FIY! CI session is saved in $_COOKIE not in $_SESSION - El Forum - 12-22-2009 [eluser]CI_avatar[/eluser] Trivia... CI cookie is saved in $_COOKIE... Is CI session saved in $_SESSION? No, its in $_COOKIE. Did you know that? FIY! CI session is saved in $_COOKIE not in $_SESSION - El Forum - 12-23-2009 [eluser]richthegeek[/eluser] Yes. Next question, quizmaster FIY! CI session is saved in $_COOKIE not in $_SESSION - El Forum - 12-23-2009 [eluser]saidai jagan[/eluser] Thanks... Very Informative. FIY! CI session is saved in $_COOKIE not in $_SESSION - El Forum - 12-23-2009 [eluser]Phil Sturgeon[/eluser] Bloody hell I didn't realize! Oh wait, it says that in the User Guide and I read it 3 years ago... now I remember. Quote:The Session class permits you maintain a user's "state" and track their activity while they browse your site. The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie. It can also store the session data in a database table for added security, as this permits the session ID in the user's cookie to be matched against the stored session ID. By default only the cookie is saved. If you choose to use the database option you'll need to create the session table as indicated below. FIY! CI session is saved in $_COOKIE not in $_SESSION - El Forum - 12-23-2009 [eluser]Colin Williams[/eluser] Haha. I guess it's a good test of who has read the User Guide. FIY! CI session is saved in $_COOKIE not in $_SESSION - El Forum - 02-21-2010 [eluser]Zack Kitzmiller[/eluser] Did you guys also know that CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications? I did. |