When I start the application, I set a session variable. I'd like on each action (each controller action) check if this variable is still available or/and Session is null if it's the case redirect the action to /Account/LogOn
I tried using Application_BeginRequest but without success. I think there is a problem with the cycle (how is done first) Session_Start, Application_Start, ...
Do you have an idea how I can do ?
Thanks,