session pb with HttpHandlers
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8697
Printed Date: 29 March 2026 at 10:03am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: session pb with HttpHandlers
Posted By: cjarnot
Subject: session pb with HttpHandlers
Date Posted: 08 January 2004 at 4:15pm
Hi,
I am facing a slight pb regarding my session
I am using a HttpHandler like this:
<httpHandlers>
<add verb="*" path="/NetInFlames/Home/*_wif.aspx" type="Framework.Controller,Framework" />
</httpHandlers>
|
But when I run the apllication, I realize that the session part of the HttpContext is null
:
public class Controller : IHttpHandler
{
public Controller()
{
}
// Override the ProcessRequest method.
public void ProcessRequest(HttpContext context)
{
...
[/code)
However, in the methodOnSession_Start of global.asax, I retrieve my session.
It is also the case in the aspx page returned by the controller
Why the HttpHanlder cannot retrieve session information from the HttpContext?
Any Idea?
FYI my session parameters
[code]
<sessionState
&nbs p; mode="InProc"
&nbs p; stateConnectionString="tcpip=127.0.0.1:42424"
&nbs p;
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
&nbs p; cookieless="true"
&nbs p; timeout="120"
/>
|
|
Replies:
Posted By: Diep-Vriezer
Date Posted: 09 January 2004 at 6:09pm
Mmm, C is not my thing, but you might want to import the namespaces used in global.asax. Just an idea. Otherwise, it's really weird.
------------- Gone..
|
|