473,406 Members | 2,956 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,406 software developers and data experts.

Sesion state persistance (file or DB)

Leo
Hi,

I'm back to ASP for a short while and I was wondering how
I could save the entire Application/Session-state to a
file or database and how to read it back afterwards. I'd
like to preserve the state inbetween service/server-
restarts. I know how to do it in ASP.NET. Pease help me.
Thanks in Advance!

Leo.
Jul 19 '05 #1
2 1712
something like this to read the variable name and contents - change
application to session to read the others

For Each strName in application.Contents
x(n) = application.Contents(strName)
next
"Leo" <no****@newsgroups.com> wrote in message
news:0c****************************@phx.gbl...
Hi,

I'm back to ASP for a short while and I was wondering how
I could save the entire Application/Session-state to a
file or database and how to read it back afterwards. I'd
like to preserve the state inbetween service/server-
restarts. I know how to do it in ASP.NET. Pease help me.
Thanks in Advance!

Leo.

Jul 19 '05 #2
Hello Leo,

Saving session info in service and sql server is a new feature in asp.net. I don't think there is any existing way to do so in
typical asp. (Surely you could completely implement it in your own way, however, it it very time consuming)

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

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

--------------------
!Content-Class: urn:content-classes:message
!From: "Leo" <no****@newsgroups.com>
!Sender: "Leo" <no****@newsgroups.com>
!Subject: Sesion state persistance (file or DB)
!Date: Thu, 24 Jul 2003 03:34:00 -0700
!Lines: 10
!Message-ID: <0c****************************@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNRzxgt50hblzh4QWWT7Mf1Th3f+A==
!Newsgroups: microsoft.public.inetserver.asp.general
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:247204
!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
!X-Tomcat-NG: microsoft.public.inetserver.asp.general
!
!Hi,
!
!I'm back to ASP for a short while and I was wondering how
!I could save the entire Application/Session-state to a
!file or database and how to read it back afterwards. I'd
!like to preserve the state inbetween service/server-
!restarts. I know how to do it in ASP.NET. Pease help me.
!Thanks in Advance!
!
!Leo.
!
Jul 19 '05 #3

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

Similar topics

4
by: Kasper K | last post by:
Hi, I'm using PHP with apache. From what I understand, global variables are only global to one php script (i.e. the file and all the files it includes), but they are not persisted between...
0
by: Michael.McD | last post by:
Is there any consensus on the way to go when implementing object persistance to a dB? For example MHibernate v. DataObjects (x-tensive). Cheers, Michael McD
1
by: Berkdan | last post by:
hi all, i want to learn this about session object in asp, when i connect to the site can session object write my ip adress to the text file and when i cut the connection then can it write...
4
by: Chad Crowder | last post by:
I've taken a look at this article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp12282000.asp which someone posted a month or so ago regarding setting up SQL...
2
by: Kiran | last post by:
Hi, This is something weird I noticed recently in ASP.Net. I have created typed dataset and I have filled the data. when a postback happens, the data of the dataset is lost. Is there a...
4
by: ewolfman | last post by:
Hi all, Recently I've learned of the ability to store Session data outside the worker process (WP), for instance the ability to use the ASP.NET State Service (aspnet_state.exe). This is great,...
45
by: bigdadro | last post by:
I've created a new class using prototype.js. After I make the ajax.request all references to this.myClassMethodorVariable are lost. Does the ajax method blow out the object persistance? I'm fairly...
4
weaknessforcats
by: weaknessforcats | last post by:
Design Patterns – State Often computer software operates based on a condition called a state. These states traditionally have been implemented using a switch statement. The cases of the switch...
1
by: =?Utf-8?B?TmVpbGUgQmVybXVkZXM=?= | last post by:
Hi there My team is responsible for designing the architecture of the web hosting environment in my orgnaisation. We plan to implement an IIS web farm, load balanced by a couple of industry...
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...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.