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

  • Home
  • SEARCH
  • 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 7832439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:13:48+00:00 2026-06-02T12:13:48+00:00

Im certain that Session id keeps changing if no value is stored in it.

  • 0

Im certain that Session id keeps changing if no value is stored in it.

enter image description here

but seems that 2010 have an exception :
here is the demo vid

new page ( empty project) :

   protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write(Session.SessionID);
    }

strange but after postback / refresh / ctrl+f5 : i get the same number…but it should’nt be like that….(since i didnt store nothing)

enter image description here

what am i missing?

p.s. Session.Count =0…..

edit

ive just run the same code in vs2005 and a new session id is each time !!!!

enter image description here

enter image description here

enter image description here

  • 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-02T12:13:50+00:00Added an answer on June 2, 2026 at 12:13 pm

    It should be like that.

    Session is a special ASP.NET runtime object that exists for all requests/responses during the determined time. It’s by design that it remains the same, doesn’t matter it’s page load or post back.

    The session terminates then it reach it’s timeout period. You might control what exact timeout you want to keep you session alive:

    Session timeout in ASP.NET

    You also able to control where the session is persisted between the request.

    http://msdn.microsoft.com/en-us/library/z1hkazw7.aspx

    In Memory state management is simplies one, it just keeps Session object in RAM. So in case of app-pool is recycled all data is gone. More production-ready scenarios include SQL state management.

    EDIT:
    I just assume, that then you running on VS2005, you run on old version of ASP.NET Web Development server (Cassini) that indeed my work in the way to have Session with each new request, if nothing is stored in Session yet.

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

Sidebar

Related Questions

I have a certain session variable that is actually an array. I want to
I must browse a certain site that keeps a session id with indy's idhttp
I have found that after a certain amount of time, the Facebook session that
Can I have certain settings that are universal for all my users?
So I have site list on certain pages that basically just have links to
I have a control, with a certain property that requires a somewhat heavy init
I have an asp.net application c# that uses session state to store a variable
I have an API that is dependent on certain state information between requests. As
I have a page that I restrict access to by checking if a certain
I was certain that if you bind a buffer via glBindBuffer() , you can

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.