Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HttpModule session state null for .zip files

Reply
Thread Tools

HttpModule session state null for .zip files

 
 
=?Utf-8?B?QW5kZXJzIEJvcm5ob2xt?=
Guest
Posts: n/a
 
      08-26-2005
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...
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      08-29-2005
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...
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session object is NULL in HTTPModule =?Utf-8?B?TWlndWVs?= ASP .Net 8 08-23-2010 03:30 PM
Unable to make the session state request to the session state server Maciek ASP .Net 0 09-15-2005 08:49 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM



Advertisments