UseAllFive / tc-documentation

3 stars 0 forks source link

Properly handle AJAX requests with a response status of 401 #317

Closed m14t closed 13 years ago

m14t commented 13 years ago

Steps to reproduce:

Log into the site

Browse to your dashboard

Open a 2nd browser window (of the same browser) to the dashboard

Use this 2nd browser to log out of the site

Attempt to complete an activity from the first browser window

Observe the ajax responce with a status of 401.

When this occurs, a popup should be displayed stating that they have been logged out with a link to log in (or the login form).

@jjkaye do you have any specific requests for how this should behave?

gabehayes commented 13 years ago

Committed revision 978. Committed revision 979.

After session is timed out, when AJAX response returns 401, user sees the following popup http://ss.picturechaos.com/v1/view.php?i=4dc8a8dc34358

Their only option is to click the 'Log In Now' button. This brings up the login box. If the user closes the login popup by clicking the close button in the upper right hand corner, they are redirected back to the homepage. http://ss.picturechaos.com/v1/view.php?i=4dc8a94455ab9