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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:48:44+00:00 2026-06-03T21:48:44+00:00

I just saw in my browser a cookie with the name ASP.NET_SessionId and an

  • 0

I just saw in my browser a cookie with the name ASP.NET_SessionId and an expiration of “When I close my browser”.

From where this expiration time coming, and how can I configure it?

Browser screenshot showing the ASP.NET_SessionId cookie with an expiry of 'When I close my browser'

  • 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-06-03T21:48:46+00:00Added an answer on June 3, 2026 at 9:48 pm

    asp.net sets a cookie which is NOT PERSISTENT – meaning you didn’t set any Expiration time.

    So the expiration time is when you close the browser.

    If you set expiration time – it goes from the memory area into the Hard Drive as a file !

    expiration is set ? yes

    in Hard Drive as a file.
    this is called persistent

    expiration is set ? no

    this is called non-persistent as ASP.NET_SessionId cookie in memory.

    expiration setting - how ?

    Response.Cookies["userName"].Value = "patrick";
    Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just saw this code while studying the wordpress source code (PHP), You can
I just saw this browser here: http://www.dietriffic.com/ Now, the green section at the top,
I have a GAE app that works just fine from my browser, but can't
just saw this comment in a what JS lib do you use poll @Xanti
I just saw this question and one of the answers looks really appealing to
I just saw this topic: Datatable vs Dataset but it didn't solve my doubt
I just saw this cool feature of JQuery which is JQuery Portlet http://jqueryui.com/demos/sortable/portlets.html I
I just saw this dating site on builtwithbootstrap and have a question about table
I just saw something unusual behavior in Google Chrome's inbuilt spell check feature. This
I just saw something odd, I'm using Google Chrome browser and I right clicked

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.