Session expiry warning not being sent, but session expiry is being sent

27 views
Skip to first unread message

Spencer Gardner

unread,
Mar 10, 2016, 12:15:57 PM3/10/16
to yourlabs
SESSION_COOKIE_AGE = 60
SESSION_SECURITY_WARN_AFTER
= 10
SESSION_SECURITY_EXPIRE_AFTER
= SESSION_COOKIE_AGE

Here are my settings. On my frontend, when I ping the server, I am correctly getting the number of seconds since session refresh, and I'm also receiving the logout message. However, I'm not receiving any sort of "warning" message. Why isn't this working?

James Pic

unread,
Mar 10, 2016, 12:35:38 PM3/10/16
to yourlabs
Perhaps it's not displaying in your HTML layout ?

Or doesn't this happen at all ?
https://github.com/yourlabs/django-session-security/blob/stable/2.x.x/session_security/static/session_security/script.js#L64

Could you reproduce the issue in the test_project ?
Reply all
Reply to author
Forward
0 new messages