Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6050177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:39:35+00:00 2026-05-23T07:39:35+00:00

I have read some issues related to session time out and i have changed

  • 0

I have read some issues related to session time out and i have changed the settings but no avail.

This is entry of session in web.config. i want to expire the session after 5 hours.

<sessionState mode="InProc" timeout="300" />

On Login page i am adding user name in session

Session.Add("Authenticated", UserName);

and my each page is inherited with BasePage and in base class i have this check for each page.

if (Session["Authenticated"] == null)
{
   Response.Redirect("../userlogin.aspx");
}

but session expires before one hour.

I want to confirm that during this there is no change in web.config, Bin folder files etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:39:35+00:00Added an answer on May 23, 2026 at 7:39 am

    Take a look at this ASP.NET Session Timeouts.

    Besides IIS Idle timeout there is Forms authentication timeout, which is 30 min by default. So you will be redirected to the login page before the session actually expired.

    <system.web>
        <authentication mode="Forms">
             <forms timeout="300"/>
        </authentication>
    
        <sessionState timeout="300"  />
    </system.web>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read some of the questions and answers here, but it none match
I have read some different responses for this same question, so I dont know
I have read some posts about this topic and the answers are comet, reverse
I have read some articles on POCO in the enttity framework but still don't
I have read some threads regarding this and I did already take steps to
In the book Linux System Programming I have read some like this: fgetc returns
This maybe a related question: Java assignment issues - Is this atomic? I have
I have read some posts having the same problem. I tried to adapt their
I have read some of the basic Google Apps Script documentation/tutorials. I have not
I have read some posts on here about not mixing parameters when passing into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.