473,513 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpModule session state null for .zip files

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...
Nov 19 '05 #1
1 1694
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...


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5488
by: Gilles | last post by:
Hi, I'm using a custom HttpModule. Implementation as follow: internal class CustomHtttpModule:IHttpModule { public void Init(HttpApplication app) { app.AuthenticationRequest += new EventHandler(OnAuthenticate);
4
3900
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external database. For example, when a page set values to Session object such as Session("somevar")=1 then I want my HttpModule to get notified and store...
7
2980
by: Tomasz | last post by:
Hello Developers, I have an interesting problem. How, or when can I access SessionState from HttpModule? It seems that session state is only available when *.aspx page is requested. It is not available for other resource types like *.gif files etc. Is there any way I can force session state to load, even when it is not *.aspx page being...
7
4676
by: ADN | last post by:
Hi, I am creating a custom HTTPModule to intercept the request of when the user is attempting to retrieve a session variable. For instance, if I set a session variable in my code like so: session = "Hello World"; When the request for that session variable "myString" is attempted to be retrieved, I would like to intercept that request like...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5102
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.