Storing Session data in $_COOKIE as well
View Single Post
08-21-2008, 10:26 AM
Join Date: Oct 2007
Location: Manchester, UK
Setting session variables then setting cookies with the data from the sessions breaks the whole concept of sessions and as people have said, potentially causes a security issue.
For a load balanced server setup you may be interested in using the DB to store session information with:
That way the sessions are no longer stored on the server but in the DB (which should be central and available to all boxes) therefore they exist to all servers on the load balancer (in theory)
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
Last edited by sketchMedia : 08-21-2008 at
The Following User Says Thank You to sketchMedia For This Useful Post:
View Public Profile
Send a private message to sketchMedia
Visit sketchMedia's homepage!
Find More Posts by sketchMedia