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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:55:49+00:00 2026-05-13T07:55:49+00:00

I am new to ASP.NET. I am creating a website in which i have

  • 0

I am new to ASP.NET. I am creating a website in which i have to create session for every user who gets login into the site. Now I am not been able to picturize how to store session in my database.

I read few books for the same and got how to configure Session state. But i m still at the same place where i started. I am not able to get where should i save session id.
I m using sql server session state. I have created database aspnetdb and all tables r over their. But i dont know how to use them. How to save my session id into database.
I m totally confused how to explain my problem.

  • 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-13T07:55:49+00:00Added an answer on May 13, 2026 at 7:55 am

    You don’t need to store the session ID in the database — that part is done for you by the runtime, assuming that you’re using sessions in SQLServer mode.

    The Session provider will read the session data from the DB at the beginning of each request, and write it at the end of each request. It does this by setting a cookie that contains the session ID, and then using the value of the cookie as the key for the DB lookup it does to find the rest of the session data.

    You can always access the session ID from the Session.SessionID property, but you should rarely need to do so.

    The Session ID cookie is not sent to the client (nor is the session data saved in the DB) until the first time you save something in the Session object. You can see this easily with a web debugger such as Fiddler.

    FWIW, normally logins should not be handled using session state. The standard ASP.NET Membership provider, for example, uses a parallel system that’s based on cookies.

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

Sidebar

Related Questions

I am new to Asp.net I am creating website which have DropDown list and
I am looking into creating a new website using ASP.NET 4.0. I am currently
I have created a new ActionFilter for an ASP.NET MVC application that I'm creating.
I'm creating an ASP.net website which handles thousands of requests and it all stems
I'm building an ASP.Net website. I have a cart class which stores the items
I'm creating a new ASP.net website via Visual Studio. I then try to run
I am Creating a new ASP.Net website not mvc, and willing to make the
I am new to asp.net. I am creating a ASP.net website using VB.net. So
New to MVC and have been running through the tutorials on the asp.net website.
I'm a bid new in ASP.net and developing a website that holds user-friendly list

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.