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 5955807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:09:58+00:00 2026-05-22T18:09:58+00:00

I need to give my ASP.NET website users a way to control their session

  • 0

I need to give my ASP.NET website users a way to control their session timeout.
I am using FormsAuthenticationTicket and cookies.

I want to give the users a way to specify how long the session will stay active. The range can vary between a few minutes to 1 day or even more.

I’m using idleTimeout (I asked a question here).

Also, I save the value entered by the user in the database and using that value I initialize the FormsAuthenticationTicket.

I have 2 more concerns: Application Pool and cookie. My website runs under a dedicated App Pool. Do I need to change the idleTimeout property for App Pool, too? Not programmatically, of course.

Anyway, to phrase my question: what other settings need to be done in order to have the session expiration dynamically set and working no matter what time interval?

Thanks.

EDIT: I am using IIS7 on a Windows Server 2008 machine.

  • 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-22T18:09:59+00:00Added an answer on May 22, 2026 at 6:09 pm

    it is never a good idea have a session time out too long as you will keep busy some resource on the server and if your web app is accessed by lots of different user it could affect the server performance.

    Anyway you can just change the session time out programmatically using the below code

    Session.TimeOut= [=nMinutes]
    

    bear in mind that session timeout should be less than Application pool idle timeout, so if you increase session timeout, you have to increase application idle timeout too. Otherwise, application will get recycled. If application is recycled, sessions will expire automatically.

    The minimum allowed value is 1 minute and the maximum is 1440 minutes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on ASP.NET 3.5 website project and using jQuery to warn users
I need to give users the opportunity to submit their details only once and
on my website (written in ASP.NET/C#) I want the moderaters to be able to
I'm developing and ASP.Net MVC 3 website. I've to give an access on some
I need to implement a regular expression in my asp.net mvc(C#) application using jquery.
I have an ASP.NET website hosted on GoDaddy. I need to redirect (301) every
I'm working on a website (asp.net, webforms, all https) and I need to setup
I'm installing the ASP .net on Win7, and I need give permission to ASP
I am developing a web application in ASP.NET (C#) and need to give a
I need to give a unique rowID to every row of a asp.net gridview.

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.