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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:34:57+00:00 2026-05-24T19:34:57+00:00

How I can set the timeout for a session specific in ASP.NET? it is

  • 0

How I can set the timeout for a session specific in ASP.NET? it is possible?
I have two or more sesions in my web application, I need set:

Session["foo"] //expire in 14minutes
Session["baa"] //expire in 30minutes

I’m wanting solve this case,if possible not using cookies.

Thanks in advance!

  • 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-24T19:34:57+00:00Added an answer on May 24, 2026 at 7:34 pm

    You can configure the timeout for a session in the Web.config file:

    <configuration>
        <sessionstate mode="inproc"
                      cookieless="true"
                      timeout="14" />
    </configuration>
    

    This is the default mode (InProc) for ASP.NET. As rockinthesixtring said in his comment, you can’t configure the timeout for individual objects in the session, just the session as a whole.

    ASP.NET Session State Overview

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

Sidebar

Related Questions

In ASP.NET you can set the session timeout in several places: web.config: <authentication mode=Forms>
In my web application I have set the session timeout for 30 minutes. But
In ASP.NET application's web.config, I have something like this <sessionState mode=InProc cookieless=false timeout=30/> Is
In a Classic ASP application, if I set Session.Timeout = 10 (or similar), can
I'd like to set the timeout on a specific Session Variable in a .Net
I know one can set the session timeout. But, if the application itself has
I have a WCF web service that uses ASP.NET session state. WCF sets a
I set session timeout to be 5 minutes in web.xml. And once session expired
I need to set memebership timeout to be less than session timeout to avoid
i have set the session timeout to 20 minutes in IIS level and there

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.