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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:17:11+00:00 2026-06-02T06:17:11+00:00

Implementing the SQL Server Session Provider by using aspnet_regsql. In Web Config <sessionState mode

  • 0

Implementing the SQL Server Session Provider by using aspnet_regsql.

In Web Config

<sessionState mode ="SQLServer" cookieless="false" timeout="1" allowCustomSqlDatabase="true" sqlConnectionString="Password=ads;Persist Security Info=True;User ID=sa;Initial Catalog=ASPState;Data Source=DF" />

When Session is created the new row is added for that session in database, but when session expires it is not deleting the row. whether we manually need to customize the method for deleting the expired session? If yes, explian the methods we need to override.

Thanks,
Pravin

  • 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-02T06:17:12+00:00Added an answer on June 2, 2026 at 6:17 am

    Go through the Implementing a Session-State Store Provider ‘s Deleting Expired Session-Store Data section.

    When the Abandon method is called for a session, the data for
    that session is deleted from the data store using the RemoveItem
    method. Otherwise, the data remains in the session data store to serve
    future requests for the session

    The mechanism for deleting expired session data depends on the
    capabilities of your data source. If your data source can be
    configured to delete expired session data according to the session
    Timeout property, you can use the SetItemExpireCallback method to
    reference the delegate for the Session_OnEnd event and raise it
    when deleting expired session data.

    Ref: Delete session from database after it expired?

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

Sidebar

Related Questions

I'm implementing a web - based application using silverlight with an SQL Server DB
I am implementing a SaaS application using ASP.Net MVC 2 and SQL Server database.
I'm using VS2010,C#,SQL Server to develop my ASP.NET web app, although this is not
I'm implementing some rudimentary SQL Server monitoring to watch for excessive blocking. I have
What are some ideas (using .NET and SQL 2005) for implementing a service that
My MVC3 application is using an SQL Server 2008 to store data. In particular
I'm trying to make a judgment call in implementing a small-ish SQL Server '08
I am using Entity Framework to layer on my SQL Server 2008 database. The
I have been using SQL Server 2008 for about a year now and my
I'm implementing a content database for a C# Asp.Net MVC3 website in Sql Server.

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.