In my ASP.Net MVC 3.0 Application, I am accessing my Session variable allover the application. code
HttpContext.Session["CustomerID"]= customerID;
When any of the session variable is not available or null due to session time out, i would like to redirect the user to the login page.
How can i do it. because i am using Session variable allover the application i can t check the variables for null at each instance.
任何帮助都将受到高度赞赏。
增 编