473,379 Members | 1,491 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,379 software developers and data experts.

Session Caching in MSDE

I have a web site that is running with two web servers and a third server
running MSDE. I have successfully installed and am running with SQL based
Session.

How do I purge the ASPStateTempSessions table from time to time? It appears
that there might have been some type of automatic script that was run with
the full blown version of SQL under the Server Agent, but that does not
exist with MSDE.
Thanks,
Nov 19 '05 #1
2 1245
msde does not support sqlagent, so the automatic job will not run. you just
need to run the purge proc manually.

exec ASPState.dbo.DeleteExpiredSessions

you could run it at appunload if you do not have a scheduler

-- bruce (sqlwork.com)

"Andrew Robinson" <ne****@nospam.nospam> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
I have a web site that is running with two web servers and a third server
running MSDE. I have successfully installed and am running with SQL based
Session.

How do I purge the ASPStateTempSessions table from time to time? It
appears that there might have been some type of automatic script that was
run with the full blown version of SQL under the Server Agent, but that
does not exist with MSDE.
Thanks,

Nov 19 '05 #2
Hi Andrew,

I agree to Bruce's suggestion. The auto cleanup task in the ASP.NET
sqlservrer session reply on the SQL Agent service. so for MSDE which dosn't
contain such service, we need to manually execute the clean up job. If you
can use the windows's schedule task , then that'll be a good choice.
Otherwise, if you think it's necessary to put all the code in your
application scope, you may consider using a global Timer or background
thread to do the job in your asp.net app.

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.)

--------------------
| From: "Bruce Barker" <br******************@safeco.com>
| References: <#c*************@TK2MSFTNGP09.phx.gbl>
| Subject: Re: Session Caching in MSDE
| Date: Mon, 1 Aug 2005 13:43:38 -0700
| Lines: 25
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| Message-ID: <uQ**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: rdcsd1.safeco.com 12.144.134.2
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSF TNGP08.phx.gbl!tk2msftngp1
3.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:115524
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| msde does not support sqlagent, so the automatic job will not run. you
just
| need to run the purge proc manually.
|
| exec ASPState.dbo.DeleteExpiredSessions
|
| you could run it at appunload if you do not have a scheduler
|
| -- bruce (sqlwork.com)
|
| "Andrew Robinson" <ne****@nospam.nospam> wrote in message
| news:%2***************@TK2MSFTNGP09.phx.gbl...
| >I have a web site that is running with two web servers and a third
server
| >running MSDE. I have successfully installed and am running with SQL
based
| >Session.
| >
| > How do I purge the ASPStateTempSessions table from time to time? It
| > appears that there might have been some type of automatic script that
was
| > run with the full blown version of SQL under the Server Agent, but that
| > does not exist with MSDE.
| >
| >
| > Thanks,
| >
|
|
|

Nov 19 '05 #3

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

Similar topics

3
by: Jessica Loriena | last post by:
I'm trying to write a simple "register form / validate and store in database / show welcome screen" application with ASP.Net. With conventional ASP, I used Session variables and it went something...
7
by: py | last post by:
how feasible is it to cache an entire page's content in a session variable? i am already doing it and it works fine, except i am afraid of scalability issues. what is the best way to test this? ...
4
by: Jake | last post by:
Does cookieless session state (with the sessionid embedded into the url) interfere with the browser's retrieval of cached images from one session to the next? Does the sessionid embedded into the...
17
by: Fred Nelson | last post by:
Hi: I have written several web applications that obtain their connection strings from the web.config file. This is very easy to use and it makes it easy to move an app from development into...
8
by: Azrael | last post by:
Hi, I have an SSLStream and i want to resume the SSL-Session for another connection to this server. How can i do this? I haven´t found any clues for it in SSLStream, perhaps Negotiatestream...
2
by: Ned Balzer | last post by:
Hi, Apologies if this is a newbie question, I haven't found the answer in any faqs. I have an asp.net 2.0 page that sets session variables and then redirects to another page. For the page...
0
by: jason | last post by:
hi experts, support.microsoft.com/kb/917072 and http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/ As pointed out in these articles, users might get session variables belong to...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
3
by: DNB | last post by:
I did post this message in C# group also... I would like to know what you guys think is the best way to access data: Asp.Net session vs. Database Queries. In our application we are using...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.