Click here to Skip to main content
15,918,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create session, what is the use
Posted
Updated 18-May-12 21:10pm
v2

Your question tag says C++/CLI. This is an ASP.Net question so you will most likely get fewer answers with an incorrect tag.

Sessions, start with
http://msdn.microsoft.com/en-us/library/ms972429.aspx[^]
ASP.NET Session Management Internals[^]
 
Share this answer
 
hai,
Sessions are used to store values on server temporary.for every user will have unique sessions values.usually session are mostly used for storing username and password..it ll get expire on particular time or when user logout his session in web application
you can find more on follwing site

refer this
http://msdn.microsoft.com/en-us/library/ms178581.aspx[^]


Creating session in c#
C#
Session["FirstName"] = FirstNameTextBox.Text;
Session["LastName"] = LastNameTextBox.Text;


Creating session in VB
VB
Session("FirstName") = FirstNameTextBox.Text
Session("LastName") = LastNameTextBox.Text
 
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