Saving sessions data in database and non-persistent cookies |
[eluser]Unknown[/eluser]
Finally I have decided to publish a little extension of the Session.php library. MY_Session.php allow non-persistent cookies with easy config: Code: $config['sess_cookie_isnonpersistent'] = TRUE; And also, I have not the cookie data limit of 4KB (because session data is stored in database). The code is very simple and I have used serialize function for storing data in a TEXT field. Also, you can save data in cookies using the new method set_userdata_cookies. The old method userdata first look at the session db info, and later in the cookie :-). It is perfect if you don't want to expose sensitive data in cookies or save more and more information in sessions. More details in my blog. Download: MY_Session.zip |
Messages In This Thread |
Saving sessions data in database and non-persistent cookies - by El Forum - 08-16-2007, 01:43 AM
Saving sessions data in database and non-persistent cookies - by El Forum - 12-25-2007, 11:45 AM
|