Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi, could any one provide me some basic example programs for sessions and application state in asp.net.
thank you...,
Posted
Updated 25-Jun-13 0:39am
v2
Comments
[no name] 25-Jun-13 6:26am    
This is not a write code to order website. I am absolutely positive that if you do a teeny tiny bit of research, you will find the example code that you are looking for.
Pheonyx 25-Jun-13 6:31am    
Yes people could.. but most won't. Do some research, Google is your friend!

to set value in session: session["name"]="mkbisht";

to get: String name=session["name"].toString();

and same for application. but session are browser dependent and application are based on per application or website.
 
Share this answer
 
To assign value to your session. Use below code.
VB
Session("YourSession") = "Assign some Value to your Session"

To retive value from your session use below code.
VB
Dim strSessionValue As String
strSessionValue = Session("YourSession")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900