English 中文(简体)
法定档案导致新开庭
原标题:Static files causing new sessions to be created

Why does a request for a .gif image cause the session_start event to fire in my asp.net application?
In my local IIS I tried setting up a module mapping for *.gif pointing to StaticFileModule thinking that would prevent IIS from routing the request through asp.net, but for some reason my session start event is still firing when just requesting this single image.
Can anyone advise what needs to be set in IIS to prevent this from happening?

增 编

问题回答

我认为,你可能还必须为这些方面制定出不可行的会议国:

https://serverfault.com/questions/77852/is-it-possible-to-set-a-folder-as-cookieless-in-iis7

页: 1 哪一个是: 这导致所有要求(包括:gif,jpg,等)通过蚊帐,而不仅仅是经管理的要求。

Anything like this:

<modules runAllManagedModulesForAllRequests="true">
    ...
</modules>

Or alternatively, have you defined any custom <httpHandlers> within your web.config?

如同您的客户关系机制一样,它可能会给处理申请的充裕时间(如果它是一种适当的工具。 如果是的话,它究竟是什么?





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签