HttpModule session state null for .zip files

Discussion in 'ASP .Net' started by =?Utf-8?B?QW5kZXJzIEJvcm5ob2xt?=, Aug 26, 2005.

  1. I've added a HttpModule that checks access rights to zip files on my web
    site. The problem is that HttpContext.Current.Session is always null for zip
    files (even late in the pipeline - I've tried EndRequest,
    Pre/PostRequestHandlerExecute, AcquireRequestState). For aspx files the
    Session is initialized as expected.

    Any ideas on why this might be?

    I've added the .zip extension to be handled by aspnet_isapi.dll. Is there
    anything else I should do. I've tried mapping .zip to different HttpHandlers
    as well (PageFactory which doesn't work at all and StaticFileHandler that
    produces the exact same result as above).

    Really need some help on this one...
    =?Utf-8?B?QW5kZXJzIEJvcm5ob2xt?=, Aug 26, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?QW5kZXJzIEJvcm5ob2xt?=

    Brock Allen Guest

    I'd suggest running ethereal or some other network sniffer to see if the
    Session cookie is being passed.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > I've added a HttpModule that checks access rights to zip files on my
    > web site. The problem is that HttpContext.Current.Session is always
    > null for zip files (even late in the pipeline - I've tried EndRequest,
    > Pre/PostRequestHandlerExecute, AcquireRequestState). For aspx files
    > the Session is initialized as expected.
    >
    > Any ideas on why this might be?
    >
    > I've added the .zip extension to be handled by aspnet_isapi.dll. Is
    > there anything else I should do. I've tried mapping .zip to different
    > HttpHandlers as well (PageFactory which doesn't work at all and
    > StaticFileHandler that produces the exact same result as above).
    >
    > Really need some help on this one...
    >
    Brock Allen, Aug 29, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shamanthakamani
    Replies:
    1
    Views:
    3,487
    Natty Gur
    Nov 20, 2003
  2. =?Utf-8?B?TWlndWVs?=

    Session object is NULL in HTTPModule

    =?Utf-8?B?TWlndWVs?=, Aug 25, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    10,414
    marktur
    Aug 23, 2010
  3. Alex Hunsley
    Replies:
    1
    Views:
    593
    Andrew Thompson
    Sep 16, 2004
  4. MoshiachNow
    Replies:
    2
    Views:
    270
    Ilya Zakharevich
    Oct 4, 2006
  5. Bo Yang
    Replies:
    9
    Views:
    297
    -berlin.de
    Nov 20, 2006
Loading...

Share This Page