Home » Posts tagged "session"

Archive for the 'session' Tag

VB.NET – End user session

To end user session and disable user from using a back button to go back to secure page, you need two pages i simply named killsession.aspx and logout.aspx. I will explain both pages with code behind and markup code. killsession.aspx killsession.aspx (markup code) < !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head […]

Increase session timeout

Increase session timeout web.config <configuration> <system.web> <sessionState timeout=”240″/> <!– increases session timeout from 20 minutes to 240 minutes, or 4 hours –> </system.web> </configuration> However, when increasing the user session timeout keep in mind the following: “The default is 10 minutes. Session.Timeout has no hard-coded limit. Most Web administrators set this property to 8 minutes. […]