Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i dont understand that how to use session in code

What I have tried:

i dont understand that how to use session in code
Posted
Updated 4-Sep-16 9:01am

ASP.Net provides sessions to store or retrieve values for a user.
These links should help you get started.
ASP.NET Session State Overview[^]
ASP Session object[^]
http://asp.net-tutorials.com/state/sessions/[^]
 
Share this answer
 
Sessions are basically, unique for every user and the application runtime. When a user starts using the application, a session is created and it can terminate:

1. When user leaves the application.
2. When application's business logic wants to.

ASP.NET provides a very easy way of managing this. That is when you use the Session variables to manipulate what values users enter, what application data is saved for the short time. You can think of the session variables as a temporary variable that gets removed once the user navigates away, or application decides to close the session. The only difference is that a session is unique to application + user.

For more on this,
http://asp.net-tutorials.com/state/sessions/[^]
ASP.NET Session State Overview[^]
 
Share this answer
 
v2

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