.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification