CodeIgniter Forums
Codeigniter Sessions - 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: Codeigniter Sessions (/showthread.php?tid=33408)



Codeigniter Sessions - El Forum - 08-25-2010

[eluser]Wonder Woman[/eluser]
Hi,

I currently use sessions to pass data from a form to another page and this data is quite important for this page to work accordingly.

I was just wondering how reliable it is storing these sessions into the database, I'm currently doing it this way but I'm just worried about what would happen if the user had cookies, etc turned off??

Thanks


Codeigniter Sessions - El Forum - 08-25-2010

[eluser]gyo[/eluser]
Cookies are necessary to keep a session alive, since there's no persistency on the web.
This is true for any web languages/frameworks out there.

Without cookies there's no way you can determine to which session a user belongs to.

For example, even if you store userdata in the database, you'll always need a cookie to keep that data belonging to the user.