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

Cross Web Server Session #8

Open
CasperHK opened this issue Jul 25, 2016 · 1 comment
Open

Cross Web Server Session #8

CasperHK opened this issue Jul 25, 2016 · 1 comment

Comments

@CasperHK
Copy link

CasperHK commented Jul 25, 2016

I want to use multiple servers to serve one website. If the user login in one server, I expect he also login in other server and have right to access his own session data. Is srinathgs/mysqlstore a good choice and stable enough for doing this? When the MySQL server is shut down, will all session data get destroyed?

Actually, I have 12 ubuntu servers under the same domain. Some of them will be used as web servers and one will be used as a MySQL database server. Therefore, I want to implement a MySQL-based session service to allow session data synchronized in all web servers.

@srinathgs
Copy link
Owner

@CasperHK When mysql is shutdown, this store does not work. For the first question, as all the data is stored in mysql, if all the web servers have access to the sessions database, it is possible for the other web server also to get the cookie data.

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

2 participants