rolling my own Session object
Messages   Related Types
This message was discovered on ASPFriends.com 'aspnghttphandlers' list.


Ben Lowery
hey there,

is it possible to rip out the guts of the Session object and replace
it with my own functionality? Ideally, the calling convention for my
clients (the aspx pages, other http handlers) wouldn't change, they'd
just keep on using the session object.

can this be done?

--b

Reply to this message...
 
    
ToddC@match.com
Supposedly in V2 we will be able to replace it. For V1 the closest you can
come that I have found is to use an HTTPModule, create your custom session
object and place it into the Context.Items collection in this module. This
collection is part of the HttpRequest object. Each page can access it from
the collection, and .NET handles destroying the objects in the collection
for you.

It is pretty clean, but not as clean as replacing the built in bits.

tc

-----Original Message-----
From: Ben Lowery [mailto:Click here to reveal e-mail address]
Sent: Monday, July 15, 2002 7:14 PM
To: aspnghttphandlers
Subject: [aspnghttphandlers] rolling my own Session object

hey there,

is it possible to rip out the guts of the Session object and replace
it with my own functionality? Ideally, the calling convention for my
clients (the aspx pages, other http handlers) wouldn't change, they'd
just keep on using the session object.

can this be done?

--b

| [aspnghttphandlers] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspnghttphandlers.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 
System.Runtime.Remoting.Contexts.Context
System.Web.HttpRequest




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com