Finally I have decided to publish a little extension of the Session.php library. MY_Session.php allow non-persistent cookies with easy config:
$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
