I have an ASP.NET MVC application that uses the Forms Authentication. I have the following configuration block inside the Web.Config:
<forms loginUrl="~/Login/LogOn" name=".td_gsl_login_cookie" timeout="10" slidingExpiration="true" />
So if the user does not click any link for 10 minutes it will be disconnected and redirected to the LogOn action at the next click. This works very fine in my app.
Now what is really annoying is that I have some links in my app that open up a modal popup window (using jQuery UI) who retrieves their content dinamically using ajax requests and if the user click on one of these links after his login timeout has expired the result is that the login page is showed inside the popup dialog. The effect is really bad...
I understand that developing a script to check if the user is still connected would slide the cookie expiration.
Do you have any suggestion on how to address this behaviour?
thanks for helping
View Complete Post