Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Session_Start(object sender, EventArgs e)
- {
- // Code that runs when a new session is started
- Session["SessionStartTime"] = DateTime.Now;
- }
- TimeSpan sessionLifeTime = DateTime.Now - (DateTime)Session["SessionStartTime"];
Add Comment
Please, Sign In to add comment