I am currently working on the completed part of the logical loop for my ASP.NET 3.5 MVC 2 project to log out and redirect them to the LogOn AccountController action.
I have the following attribute for all my actions that relate to session state, and this piece of code works in IE 8 but not Firefox 4 or Google Chrome 10. The symptom is that I am trying to go to the view represented by the action with my attribute [SessionExpireFilter], the ctx.Session.IsNewSession property in the code below evaluates to “true” every time, even if I'm only seconds in my 30 minute session.
public class SessionExpireFilterAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { HttpContext ctx = HttpContext.Current;
Is there a way to find out why Chrome and Firefox behave this way, but IE not? Thanks in advance.
EDIT: This does not work in FF, as I expected. I head to my LogOn action immediately after logging in and trying to access the action using the SessionExpireFilter attribute.
c # firefox google-chrome asp.net-mvc session-timeout
Pancake parfait
source share