Friday, 5 October 2012

Session handling

it is use to transfer the value of one page into another page.
by the use of session we can use the value of one page in overall application
mainly it is used for login and logout.
take 1 page which look like as



take another page which look like as


                             


in the page 1 write the code in the button click event


in the page 2 write the code



session.remove();=it is used to delete the session value.

Automatically remove or kill the session...
in the web.config file

write the highlighted code in <system.web>


where timeout ="1" means after 1 minute it automatically delete the session..

No comments :

Post a Comment