Hi all,
I am using ajax for some request but when the user session expire, I get a ActionController::InvalidAuthenticityToke error.
Do you know how I could trap this error and redirect to the login panel ?
Hi all,
I am using ajax for some request but when the user session expire, I get a ActionController::InvalidAuthenticityToke error.
Do you know how I could trap this error and redirect to the login panel ?
MR Damien wrote:
Hi all,
I am using ajax for some request but when the user session expire, I get a ActionController::InvalidAuthenticityToke error.
Do you know how I could trap this error and redirect to the login panel ?
I tried to put a begin ... rescue ... end over the code, but it doesn't work.
Is someone have an idea about this problem. I will have to disable forgery if there is no solution ...