Click here to Skip to main content
15,902,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am quit confuse about session in asp.I am using it but my concept about session is not clear .let supposed I have a piece of code here
if (Session["UserId"] == null)
            {
        Response.Redirect("~/Pages/Logout.aspx");
            }
            if (!Page.IsPostBack)
            {
                binlabel = "Lable";
                MyFunction();
            }


It says there is a value in "UserID" its checking if its vale is not null,but what value it has for how long it has that value.? how can we mange session for diff-2 controls.Quit confuse..Please help me out in this.I will really appreciated for your help.
Thanks..
Posted
Updated 25-Jul-11 19:09pm
v2

Dear Anupam,

You have to learn a lot about sesson and state management in Asp.Net.
Here are some links that can help you out.

Exploring Session in ASP.Net[^]

http://msdn.microsoft.com/en-us/library/ms972429.aspx[^]
 
Share this answer
 
Comments
[no name] 26-Jul-11 0:52am    
thanx.. I got lots about it.Is it enough? What do you suggest?
hi,
this link might help you.
[^]
 
Share this answer
 
Comments
[no name] 26-Jul-11 0:52am    
thanx.. I got lots about it.Is it enough? What do you suggest?

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