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

What is the point of the active sessions table? #45

Open
sbinlondon opened this issue Aug 17, 2018 · 1 comment
Open

What is the point of the active sessions table? #45

sbinlondon opened this issue Aug 17, 2018 · 1 comment
Labels
question Further information is requested

Comments

@sbinlondon
Copy link

It's cool and I like that you wrote the functionality to insert and delete from the table whenever a user logs in or logs in again, but why are you storing that info? Were you going to use it anywhere? Why do you need that in addition to the cookie?

@sima-qian
Copy link
Collaborator

When a user comes to us with a cookie, we check the session_id of the cookie matches a session_id in the active_sessions table -- otherwise how do we know that they're a real user?

@sima-qian sima-qian added the question Further information is requested label Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants