Last post Jan 11, 2012 03:45 AM by visor09
Jan 09, 2012 04:29 PM|Deudvid|LINK
I have just started developing a full-web application by using the ASP .NET MVC 3 framework.
I am a MVC 3 beginner developper.
I need a way to implement the following logic :
When my application receives an HTTP request from a browser I want to check if a session is valid with this browser.
If not, I want to execute the Index action method of my Connection controller.
The Index action method returns an HTML5 page to the browser which lets the user authentificates himself to the application.
If a session is valid then I want to check if the IdUtilSession and IdSocSession session variables are stored.
If both session variables are not stored then I want to execute the Index action method of my Connection controller.
I read some MSDN documentation about managing session variables.
I think I am able to manage session variables in my application.
I want to know the event I have to handle - "When my application receives an HTTP request".
I read the following MSDN documentation page on the ASP .NET application life cycle :
A sequence of events are triggered during the request processing from
Do I need to handle one of these events in my Global.asax file ?
Thanks in advance for your future help
Jan 11, 2012 03:45 AM|visor09|LINK
You can write a custom authorize attribute and use it, same question is answered