XpertWorlock Posted January 27, 2010 Share Posted January 27, 2010 I'm interested in knowing the best way to deal with sessions, especially when it comes to a website that is over multiple servers. Is the best way to store the session data in a database, give the user a cookie containing the session id and than that way if the user is switched to a different server, than it will request all the session data? Although I've never had a website where I've needed this, I'd like to learn and enforce this to prevent problems in the future. Thanks guys Link to comment https://forums.phpfreaks.com/topic/189967-sessions-across-servers/ Share on other sites More sharing options...
jl5501 Posted January 27, 2010 Share Posted January 27, 2010 Assuming both servers are accessing a common database, then your idea is a godd way of achieving session integrity across web servers. Link to comment https://forums.phpfreaks.com/topic/189967-sessions-across-servers/#findComment-1002297 Share on other sites More sharing options...
XpertWorlock Posted January 27, 2010 Author Share Posted January 27, 2010 so thats the way it is done? Interesting Link to comment https://forums.phpfreaks.com/topic/189967-sessions-across-servers/#findComment-1002302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.