473,320 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Manually Clear Session Object and State Server

fm
We are using State Server to host our session objects.

We have several applications running under IIS that will be using the State
Server.

How can one of those applications clear its Session state? If it was in
process, we could just stop and start the web app. We can not just stop and
start the State Server service because it would wipe out state for all
applications.

Thanks,
fm
Nov 18 '05 #1
4 9268
Hi Fm,

Thanks for your posting. As for the problem you mentioned, I think there is
no buildin means for managea certain single application's session state
since the state server is run as a windows service on the server and
haven't any particular managment interface. But you may try modifying the
asp.net application's web.config to change the sessionstate mode to see
wheher this can make the stateserver session invalidated. For example,
change the Session Mode to InProc and run the applicaiton, then change it
back to StateServer Mode.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
fm
Hi Steven,

I have tried tried that in the past and I just reconfirmed it that switching
the session from InProc and back to StateServer restores the values sitting
in StateServer.

A hack I tried is setting the Timeout to 1 minute. But the session has to be
idle for the original 20 minutes before this new timeout takes affect.

Quite frustrating. Seems like an even bigger hack will be required like
having an administrator drop an include file on the server that each request
will check to see if it should call Session.RemoveAll or something.

Hopefully ASP.NET and IIS6 will be more robust then the current ASP IIS5
solution for the development team that requested this requirement so they
won't need it.

Thanks,
fm

"Steven Cheng[MSFT]" wrote:
Hi Fm,

Thanks for your posting. As for the problem you mentioned, I think there is
no buildin means for managea certain single application's session state
since the state server is run as a windows service on the server and
haven't any particular managment interface. But you may try modifying the
asp.net application's web.config to change the sessionstate mode to see
wheher this can make the stateserver session invalidated. For example,
change the Session Mode to InProc and run the applicaiton, then change it
back to StateServer Mode.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
fm
Hi Steven,

Another that came to me, can more then one instance of State Server run on a
server?

Thanks,
Fm

"Steven Cheng[MSFT]" wrote:
Hi Fm,

Thanks for your posting. As for the problem you mentioned, I think there is
no buildin means for managea certain single application's session state
since the state server is run as a windows service on the server and
haven't any particular managment interface. But you may try modifying the
asp.net application's web.config to change the sessionstate mode to see
wheher this can make the stateserver session invalidated. For example,
change the Session Mode to InProc and run the applicaiton, then change it
back to StateServer Mode.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
Hi Fm,

AS for instance of StateServer, I think only one is existing on a
StateServer machine because the asp.net statserver is run as a windows
service, you can find it in the server's service list. Thanks.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5

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

Similar topics

1
by: WildHare | last post by:
I am looking for documentation on state server failover. There is a microsoft article which sort of talks about protecting against a failed state server by using SQL server...but it about as clear...
5
by: Frank | last post by:
Our system maintains session state using the ASP.NET State Server service. We expect some of our session state objects to be over 85K, which categorizes them to be VLO's (very large objects) in terms...
4
by: C P | last post by:
I've seen references to using an out of process state server in cases where you need to maintain session state in a web server farm. I think SQL Server will be too slow to manage the state that I...
2
by: John Mullin | last post by:
We are having a problem which appears similar to a previous posting: http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1 ...
8
by: Beve Lyni | last post by:
I am running an asp.net project on my localhost and using state server as state management, it has the following code in web.config <sessionState mode="StateServer"...
2
by: jakk | last post by:
Below is the exception that Iam getting. It says that the DataView that Iam storing in the session is not Serializable. BUt works fine if I store in the inproc session and fails if I switch to...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
0
by: Maciek | last post by:
Hi When I set Session state mode to StateServer (IIS 6.0; windows2003; .NET 2.0) in my application, I have recived this message:...
3
by: ESmith | last post by:
I have multi-page form where I pass an object between pages as follows: On each page: // What page to go to next private void btnContinue_Click(object sender, System.EventArgs e) { if...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.