gate-sso / gate

Gate is MFA Enabled SSO Platform that supports SAML, OAuth, Linux shell login and CAS
https://gate-sso.github.io
MIT License
203 stars 53 forks source link

Use active record to store session #177

Closed walbertus closed 4 years ago

walbertus commented 4 years ago

Store session data to the database using active record instead of browser cookies. This will prevent unauthorized user stole the cookies from the previous user or by sniffing requests. Cookies will only contain session id, session data will be destroyed when user logout.