dharmafly / tasket

A micro-volunteering app, for crowd-managed tasks.
http://dharmafly.com/tasket
26 stars 3 forks source link

Invalid sessionid should trigger logout mechanism #385

Open premasagar opened 13 years ago

premasagar commented 13 years ago

Occasionally, in development at least (due to switching git branches?), a 401 Unauthorized error is received from the server in response to a request to PUT a change to a model.

Currently, there is no routine in the JavaScript to detect this and respond accordingly. Probably, an error notification should be displayed, with a link for the user to login again and retry.