home

Asp.net Session Tutorial


A variable is stored temporary in the computer memory, but sometimes we need to hold data across different pages. Here is when Session Variables come very helpful. They can retain their values as long as the user:

 

To create a session variables:

Session(“VariableNameHere”) = “VariableValueHere”

To set a different session time out in minutes:

Session.TimeOut = 40

To remove the session variable:

Session.Contents.Remove(“VariableNameHere”)


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web design london by dotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com