Some basic session state questions



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

.



Relevant Pages

  • Re: a [hopefully] easy question
    ... wipe their environments during a session?". ... I don't often wipe my environment. ... CONSUMER NOTICE: Because of the "uncertainty principle," it is ...
    (comp.lang.lisp)
  • Re: Speedo Stroke Monitor timing problem
    ... Before each session, wipe the contacts ... with a clean towel and a mild cleanser. ... Prev by Date: ...
    (rec.sport.swimming)
  • cache/session/application, do these share memory?
    ... I understand there are different places to store session info. I'm ... In my head you have to keep session info. Cache info (which is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: cache/session/application, do these share memory?
    ... I understand there are different places to store session info. I'm ... In my head you have to keep session info. Cache info (which is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: user identification
    ... Browser fingerprinting is inaccurate for a number of reasons: ... To keep track of a session, ... least one of cookies, session IDs passed via URL transparently ... It is possible to write session handlers to stuff the session info ...
    (comp.lang.php)