I need to control timeout values for each user. Im having trouble to make it work. When the session timouts out I want to redirect the user to the login page...cud anyone help me with this..

>When the session timouts out I want to redirect the user to the login page

Create a session key and check it on each request.

if(Session["key1"]==null) {
   Response.Redirect("~/Login.aspx");
 }

thank for the help..but where should i write this code....in master page or in all the pages....anyways iam working on asp.net using c#...

Choose page_load event of master page or content page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.