Checking For An Expired Auth Session

Completed

Requested by tomgobich  

tomgobich
Adocasts+ Adocasts+

Show how to send a ping to check for the user's authentication status.

For example, if a user leaves their computer overnight with your site open in the browser when they return their session will be expired (if not using remember me). Normally, this would still show the user as authenticated which would result in an error if they click on an auth-protected action.

Please show how this can be gracefully handled.

2

Join The Discussion! (2 Replies)

Please sign in or sign up for free to join in on the dicussion.

  1. Request completed 1 year ago with the following comment
  2. Request approved 1 year ago with the following comment

    This lesson has been recorded and is awaiting editing.

    0

    Please sign in or sign up for free to reply