Re: Keeping objects between requests within the same session
From: Teemu Keiski (joteke_at_aspalliance.com)
Date: 02/26/04
- Next message: Hatem Gamal: "Deleting form dataGrid bug"
- Previous message: Don: "Re: Keeping objects between requests within the same session"
- In reply to: Don: "Keeping objects between requests within the same session"
- Next in thread: Don: "Re: Keeping objects between requests within the same session"
- Reply: Don: "Re: Keeping objects between requests within the same session"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Hatem Gamal: "Deleting form dataGrid bug"
- Previous message: Don: "Re: Keeping objects between requests within the same session"
- In reply to: Don: "Keeping objects between requests within the same session"
- Next in thread: Don: "Re: Keeping objects between requests within the same session"
- Reply: Don: "Re: Keeping objects between requests within the same session"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|