Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // global.asax
  2. void Application_PreRequestHandlerExecute(object sender, EventArgs e)
  3. {
  4. if (Session == null)
  5. return;
  6.  
  7. // if special key is not present then session is expired
  8. if (Session["filled"] == null)
  9. {
  10. if (User.Identity.IsAuthenticated)
  11. {
  12. FillSession(Session, User.Identity.Name);
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment