PHP Session class with encrypted cookies


/ Published in: PHP
Save to your folder(s)

I’ve made this class that can use normal session variables, or cookies. This class can use cookies in two ways: store a single variable in each cookie, or pack many variables, encrypt, and store them into cookies.

Now I always use this class when I have to use session/cookies and when I know that I have not to put too many bytes in cookies (since cookie size is limited).

URL: http://www.barattalo.it/2009/12/21/php-session-class-with-crypted-cookies/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.