473,699 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SessionState Mode=SQLServer and Session.Abandon

Ed
I am trying out SessionState with Mode=SQLServer. I have my
code run Session.Abandon , but the session entry in the table
ASPStateTempSes sions is still there? I was expecting that Session.Abandon
would remove the Session from the table. Is their a different method I
should use
to remove the Session table entry? Is the only way the session will be
removed from the table, is when the session Expires? I notice that there is a
SQL job
that deletes expired sessions, but would it not be better if this entry is
removed
immediately on logout?

Thank you

Ed

Sep 20 '06 #1
1 3251
you are correct, the sql job is the only deleter.

-- bruce (sqlwork.com)
"Ed" <Ed@discussions .microsoft.comw rote in message
news:37******** *************** ***********@mic rosoft.com...
>I am trying out SessionState with Mode=SQLServer. I have my
code run Session.Abandon , but the session entry in the table
ASPStateTempSes sions is still there? I was expecting that
Session.Abandon
would remove the Session from the table. Is their a different method I
should use
to remove the Session table entry? Is the only way the session will be
removed from the table, is when the session Expires? I notice that there
is a
SQL job
that deletes expired sessions, but would it not be better if this entry is
removed
immediately on logout?

Thank you

Ed

Sep 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2180
by: Kristofer Liljeblad | last post by:
Hi, I've successfully setup my machine to use: sessionState mode="SQLServer". All is up and running so no problems so far. Because I curious person, I started to play around with the two new tables created on my SQLServer. Here is what I've done. 1. I've created a web projectec consisting of two webforms. The first form (default.aspx) is my testform and it doesn't do much at all. (Actually it
1
3487
by: TSelvan | last post by:
Hi All, We have developmented Web project with ASP.Net and SQL server Database. In this project we have configured "SessionState" mode as "SQLServer" in Web.Config with timeout="180" as mentioned bellow. But the session expires in 30 min. Please let me know Regarding this. Thanks for your help.
1
2458
by: quique | last post by:
Hi all, I want to know the advantages and disadvantages of the methods of maintain session state, obviously if i choose sqlserver is the most robust but the less performace.. If wan't to maintain session state in sqlserver, Does anybody knows when it's saved to database?, on beguinSession, on endSession... <sessionState
3
2373
by: Kenny | last post by:
Hi , I have created two Web Application - WebApplication1 and WebApplication2 in same machine for testing purpose. e.g http://localhost/WebApplication1.aspx http://localhost/WebApplication2.aspx I have this setup for both WebApplication's Web.Config <sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424"
6
1461
by: Wardeaux | last post by:
I'm wanting to use SQL to store session variables. This works well because it maintains session variables even though a session times out but the browser is still open When a session.entry in the sql table ASPStateTempSessions is automatically removed whenever the browser calls "Session.Abandon"... this is good, but the session entry is left when the browser is closed by the user thus ending the session. How do the entries eventually get...
0
968
by: Phl | last post by:
Hi, I am having some problems hosting my website. Everything works fine in my local machine but when I upload to propduction server, my images somethimes won't load properly. I have my state configuration like this in my web.config: <sessionState mode="SQLServer"
1
1430
by: Craig | last post by:
I'm planning on persisting sessionState in a database (not MS SQL). Is there a way to do this using the web.config file? I see that you can set the sessionState mode="SQLServer" to persist to a MS SQL database, but can it be done somehow while using another database? If not, what are some ideas for the best way to handle this appropriately? I'm trying to keep the session information updated in a database, so that other web...
2
2395
by: =?Utf-8?B?U3Bpcml0RmxhZw==?= | last post by:
I want to configure different sessionState on different subdirectory,so I wote this code in wen.config file: <location path="SubInProc"> <system.web> <sessionState mode="InProc" cookieless="AutoDetect" timeout="20"/> </system.web> </location> <location path="SubSQLServer"> <system.web> <sessionState mode="SQLServer" cookieless="false" timeout="20"
3
3448
by: Moe Sisko | last post by:
Using dotnet 2.0 sp1, I've got ASP.NET session state working ok in SQLServer mode, but the sessions never seem to expire. e.g if I add a timeout attribute like so : <sessionState mode="SQLServer" sqlConnectionString="Integrated Security=SSPI;data source=localhost" timeout="1" >
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.