How many sessions?

A

Anonymous

Guest
Hi friends,

In my current project I am using 8 different sessions for storing data. Now I realize that I need some more. Now I am confused that
HOW MANY SESSIONS I CAN USE SIMULTANEOUSLY?

I dont want to make my site slow so give good suggestion.

Thank You.
 
Each user visiting your site at a given time, is a initialized session.
By default, when a user leaves your site (closes the browser), the session ends.

So the number of sessions may vary.
 
ThanX but I know that.

My confusion is, what is the limit of storing data into sessions.

Suppose, I am storing 20 variable information into session. There are 100 users surfing simultaneously my site so

100 new sessions are created. So those data are stored on server. So will it affect to server speed?


Thank You.
 
Your bandwidth will deternime that depending on the amount of users online such as request/response data involved.
However, it's not a good idea storing too much data in sessions.
The common way is to store users' and sessions IDs, such as the access time and the users' status (online/offline - session opened or closed). With this kind of data you can easily handle the whole sessions system.
 
Back
Top