Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/253384-is-a-sessions-database-needed/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.