floridaflatlander Posted December 17, 2011 Share Posted December 17, 2011 I've been thinking that I needed to build a database to store sessions in. However, seeing a post in another topic got to pondering if I really need it now. My site is very small and as of now the login script makes the normal sessions variables, member id, display name, etc., and I've also thrown in http_user_agent. If sessions are destroyed by logging out or by closing the browser is a session database really needed? How much does site size matter? Say on a very small site (10-15 people a day, no money changing hands, just logging in and posting) or medium small site (50-100 people a day, no money ...) ? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/253384-is-a-sessions-database-needed/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 17, 2011 Share Posted December 17, 2011 Using a custom session save handler to store the session data in a database is only really an advantage when your site is busy enough to have two or more (load-balancing) web servers, that must have access to the same session data. Quote Link to comment https://forums.phpfreaks.com/topic/253384-is-a-sessions-database-needed/#findComment-1298869 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.