I want session management in asp.net application so when ever i am logout my other aspx pages could not open.
Please tell me easy way.
I am new to c# and Asp.net so please ignore my way of asking.
I want session management in asp.net application so when ever i am logout my other aspx pages could not open.
Please tell me easy way.
I am new to c# and Asp.net so please ignore my way of asking.
When the user logs out. Do following
Session.Clear();
Session.Abandon();
On master page (or all other pages which requires restriction), check
If (Session["sessionname"] == null)
{
Respones.Redirect("MyTimeOutPage.aspx");
}
-Milind
IMHO The easy way is to work through some tutorials e.g.Building Secure ASP.NET Applications
There's no silver bullet here, you have to understand what the underlying framework is doing.
Try using Authentication and Authorization.
This will be easy and help you in your Project.
You can also do by using SessionManagement. If so, Try these links