Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use user sessions with multiple servers? #44

Closed
zilveer opened this issue Jan 14, 2019 · 5 comments
Closed

Use user sessions with multiple servers? #44

zilveer opened this issue Jan 14, 2019 · 5 comments

Comments

@zilveer
Copy link

zilveer commented Jan 14, 2019

Hi everyone,
a question can mix-php handle user sessions through multiple servers (front end ) connected to one database server ?

I am thinking of that laravel can handle it since one can store sessions in the database, is this possible to do the same with mix-php ?

Regards

@onanying
Copy link
Member

The mix's session is stored in redis and does not use PHP's built-in session, which is completely different from laravel.

@zilveer
Copy link
Author

zilveer commented Jan 15, 2019

@onanying
Thx for to reply.
Is there any way to store the user sessions among multiple servers for front end ? I mean in the end we will be using load balancing and that is why it is important to be able have sessions in DB.
Or is there any other way to solve in it mix-php ?

@onanying
Copy link
Member

The mix session is based on redis and supports load balancing.

@zilveer
Copy link
Author

zilveer commented Jan 17, 2019

@onanying that means the if I use mix-pho there is no other way for me to share the user sessions amount the multiple servers if I don't create my own session handler right ?
Is there any plan to add DB session handler soon for mix-php soon ?

@pingcheng
Copy link

@onanying that means the if I use mix-pho there is no other way for me to share the user sessions amount the multiple servers if I don't create my own session handler right ?
Is there any plan to add DB session handler soon for mix-php soon ?

Simply launch a redis server and make mix-php use that redis, then you can read the session from same session pool.

Redis a memory based cache program, it is a memory DB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants