daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void Session_Start(object sender, EventArgs e)
  2. {
  3.     // Code that runs when a new session is started
  4.     Session["SessionStartTime"] = DateTime.Now;        
  5. }
  6.    
  7. TimeSpan sessionLifeTime = DateTime.Now - (DateTime)Session["SessionStartTime"];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top