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
how can I get notified when a session expires by its lifetime?
I need it because I want to set the user state as offline. when he or she logs out or it's session lifetime expires.
thanks.
The text was updated successfully, but these errors were encountered:
On Wed, 24 Oct 2018, 23:24 reza, ***@***.***> wrote:
how can I get notified when a session expires by its life time?
I need it because I want to set the user state as offline. when he or she
logs out or it's session lifetime expires.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#53>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAN7NX2Lvw6Y-5I5kquv0lNMId8IQHKzks5uoNqggaJpZM4X5Fq7>
.
With v2.0.0 this should now be possible. The Commit() method returns the session token and expiry time after saving the session data to the store. You can use middleware to automate saving the session data and do whatever else you need to do with the expiry time, similar to this gist: https://gist.github.com/alexedwards/cc6190195acfa466bf27f05aa5023f50
how can I get notified when a session expires by its lifetime?
I need it because I want to set the user state as offline. when he or she logs out or it's session lifetime expires.
thanks.
The text was updated successfully, but these errors were encountered: