You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered that deserializeUser is not called if session was not found in a DB by express-mysql-session. Is it correct behavior?
Use case:
I'm using passport-local with session = true and with express-mysql-session as a session store. When session is ok (found by express-mysql-session in a DB) then deserializeUser is called all right. However if a session for some reason isn't found in a DB (eg. session cookie is manually deleted in a browser or a session row is manually deleted from DB) then deserializeUser doesn't get called. Why? Is it correct behavior?
The text was updated successfully, but these errors were encountered:
wzup
changed the title
deserializeUser is not called when session was deleted. Is it correct behavior?deserializeUser is not called when session was not found in DB. Is it correct behavior?
Oct 10, 2017
I discovered that
deserializeUser
is not called if session was not found in a DB byexpress-mysql-session
. Is it correct behavior?Use case:
I'm using
passport-local
withsession = true
and withexpress-mysql-session
as a session store. When session is ok (found byexpress-mysql-session
in a DB) thendeserializeUser
is called all right. However if a session for some reason isn't found in a DB (eg. session cookie is manually deleted in a browser or a session row is manually deleted from DB) thendeserializeUser
doesn't get called. Why? Is it correct behavior?The text was updated successfully, but these errors were encountered: