Re: Keeping objects between requests within the same session

From: Teemu Keiski (joteke_at_aspalliance.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 23:25:31 +0200

Hi,

HttpContext.Current.Session

-- 
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Don" <unknown@oblivion.com> wrote in message 
news:wqt%b.605594$JQ1.508433@pd7tw1no...
I have an ASP.NET program that references a VB.NET DLL.  I had originally
planned for my DLL to put things in the HttpContext.Current collection so
that the ASP.NET can access them throughout an entire session (according to
a tip I saw on a website somewhere), but it turns out that it only lasts for
the current page request.  If another page is requested, the contents of
HttpContext.Current are cleared.  Except for the lack of proper scope,
HttpContext.Current gives me the functionality that I need.
Is there another class I can throw this stuff into, similar to the way
HttpContext.Current works, that will let the objects last for the entire
session and not just the current request?  In ASP.NET there's a Session
class which has the right scope, but I don't know how -- or even if it's
possible -- to access that class from by VB.NET DLL.
- Don


Relevant Pages

  • Keeping objects between requests within the same session
    ... I have an ASP.NET program that references a VB.NET DLL. ... that the ASP.NET can access them throughout an entire session (according to ... the current page request. ... Except for the lack of proper scope, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Run code part (like threadproc) in separate process
    ... some process level session objects. ... If one dll fails, it fails the process. ... wcoloader /dll:wcothread1.dll ...
    (microsoft.public.vc.language)
  • Re: Run code part (like threadproc) in separate process
    ... some process level session objects. ...   Each client is independent. ... If one dll fails, it fails the process. ...
    (microsoft.public.vc.language)
  • Re: ShellExcute for non EXE files
    ... the question is how to send commands to a ... command window. ... callback mechanism from that DLL that send received text to our app. ... >a TN3270 session that allows me to connect to Mainframe server. ...
    (microsoft.public.vc.mfc)
  • Re: Session State 2 Webprojects
    ... VB.NET compiler to create a DLL from all the VB.NET code-behind files. ... either you can drop session state but you'll have ... Patrice ...
    (microsoft.public.dotnet.framework.aspnet)