Some basic session state questions
- From: codegreen9@xxxxxxxxx
- Date: 9 Apr 2006 20:28:40 -0700
Hi,
My understanding is that session info must be stored using
Session["var"], which means text data. What I'd like to be able to do,
is keep an object alive throughout a user's session, without having to
serialize my data into text, save it as Session["var"], and restore it
using Session["var"] every time the user moves to a different page.
Is there no way to have a session *object* stay in memory and preserve
variable state without serialize/deserialize/Session[] ?
Also, depending on what a user is doing, I'd like to temporarily store
his/her selections in SQL, for the duration of the session, then wipe
out that temporary data when the session expires. Is there a way I can
use the .net framework to do that? By notifying me or a SQL stored
procedure to clean out that data? I could use a scheduled stored proc
to wipe out old temp data, I just wondered if there's anything in
ASP.NET that I could tap into.
Thanks in advance
.
- Follow-Ups:
- Re: Some basic session state questions
- From: Hans Kesting
- Re: Some basic session state questions
- Prev by Date: Re: How to return class member as string?
- Next by Date: Why doesn't trace write timestamp?
- Previous by thread: RE: To handle logarithms in DataTable.Columns[0].Expresion
- Next by thread: Re: Some basic session state questions
- Index(es):
Relevant Pages
|