Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // global.asax
- void Application_PreRequestHandlerExecute(object sender, EventArgs e)
- {
- if (Session == null)
- return;
- // if special key is not present then session is expired
- if (Session["filled"] == null)
- {
- if (User.Identity.IsAuthenticated)
- {
- FillSession(Session, User.Identity.Name);
- }
- }
- }
Add Comment
Please, Sign In to add comment