Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - session pb with HttpHandlers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

session pb with HttpHandlers

 Post Reply Post Reply
Author
cjarnot View Drop Down
Newbie
Newbie


Joined: 08 January 2004
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjarnot Quote  Post ReplyReply Direct Link To This Post Topic: session pb with HttpHandlers
    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"
    />   
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.