cramerz logo

Asp.net Session


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”)



all rights reseverd by Cramerz.com©. web development by web design company DotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com. web design courses