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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:37:56+00:00 2026-05-24T15:37:56+00:00

When ever user logs into my website, I am storing HttpContext.Current.SessionID in my user

  • 0

When ever user logs into my website, I am storing HttpContext.Current.SessionID in my user log table. I want to make sure can this be duplicate? If yes, I want to make the column unique in database. If it can be duplicated, any thing to get from session which will be unique and will never be regenerated in future like GUID?

  • 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-24T15:37:56+00:00Added an answer on May 24, 2026 at 3:37 pm

    HttpContext.Current.SessionID will be unique for the current set of sessions only – that is, every session ID will be unique when it is active. However, once the session expires, there is no guarantee that new sessions will not have the same ID. If this is the case, any persistent data (based on a session ID) will now be referring to a different session.

    Please also note the following remarks from the MSDN page.

    The SessionID value is randomly generated by ASP.NET and stored in a
    non-expiring session cookie in the browser. The SessionID value is
    then sent in a cookie with each request to the ASP.NET application.

    However, if the cookie is cleared, the session is restarted.

    The SessionID is sent between the server and the browser in clear
    text, either in a cookie or in the URL. As a result, an unwanted
    source could gain access to the session of another user by obtaining
    the SessionID value and including it in requests to the server. If you
    are storing private or sensitive information in session state, it is
    recommended that you use SSL to encrypt any communication between the
    browser and server that includes the SessionID.

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

Sidebar

Related Questions

I have a textfield where the user can type what ever he want into
So I'm building my first ever website with user accounts. What data should I
I'm using ASP.NET MVC 3. When a user logs in to my website application
Delete some specific data present in a file.What ever user want to delete that
I have a simple site, I want to code that when ever a user
I want to draw a circle when ever user touches any place on the
I create socket connection each time user logs into my application. This means if
I have one requirement to fulfill. Actually when ever user Login into my application
This might be a silly question: Does HTTP ever use the User Datagram Protocol?
I wonder if it's ever possible to 'secure' wine; like for a user not

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.