User sessions data storage

Mick Dawlings Posted in Technical Support 5 months ago

Are user sessions stored in DB or on the operating system?
Is it possible to store sessions in DB so that if I added a redundant server, sessions would not be lost as users get moved from one server to another.

Replies
us Mick Dawlings Replied 5 months ago

Yes, I'm aware of these things but this does not answer if ossn can be used in a load balanced setup for example.
Each web server is identical and their web path is shared over nas/san.
The only main thing is making sure that user sessions can cross servers without being lost.
I'd like to know if there are any known problems with this because I always like to set up redundancy.

Indonesian Arsalan Shah Replied 5 months ago

By scale you can have different

database server, different ossn data drive (remote) or use CDN component.

Example

Server 1: Database
Server 2 : Source of OSSN
Server 3 : Data Source either by using NAS or CDN

us Mick Dawlings Replied 5 months ago

Sure but more efficient in many cases.
But again, the question is mainly this; can ossn scale across multiple servers?
Are there any known issues or problems?

Indonesian Arsalan Shah Replied 5 months ago

Database operations are slow that is why sessions are stored on disk. Database operations slow down the system.

us Mick Dawlings Replied 5 months ago

Mainly, the question is really, can ossn scale to multiple servers.
I suppose the disk sessions could be shared but doing so in DB would be much more effective.

us Mick Dawlings Replied 5 months ago

Could they be stored in DB?

Indonesian Arsalan Shah Replied 5 months ago

php sessions are stored on your server disk. Check global php settings for session path