(Bug?) IIS Sends response to wrong client

G

Gilles

Hello,
I discovered a strange behaviour (bug?) in IIS 5.0 and asp.net 1.1.
- user A clicks on a link requesting page x.
- user B clicks simultaneously (1/10th of second later)on the same link.
- user A receives the expected response.
- user B receives the response of A.
the Page_Load of page x.aspx contains:
Response.Write(HttpContext.Current.Session.SessionID);

I posted this question in the microsoft.public.inetserver.iis group, but
nobody seems to be interested to answer, I hope receiving guidelines here.

Could you please help ?

Thanks

Gilles
 
G

Geir Aamodt

Gilles,

Do you have any kind of caching enabled?
Like page or fragment caching?

Or do you have a proxy/caching server between you and the web server?
 
G

Gilles

Hello Geir,
Thanks for your answer.
The application is on our intranet and in my knowledge, there is no proxy
server in there.
I put <%@ OutputCache Duration="1" VaryByParam="none" %> in the Page
directive.
But maybe there is something I missed in the Web server config.

Gilles
 
P

PL

Why even put in an outputcache declaration at all when you are trying something like this ?
Most likely you are caching and that is the issue you are seeing.

PL.
 
G

Gilles

Thanks you all, I've found the answer thanks to your suggestions,
I thought that the directive <%@ OutputCache Duration="1" VaryByParam="none"
%>
prevents caching, but I wa wrong.
I replaced the directive with <%@ OutputCache Location="None"
VaryByParam="None" %> and it works now.

Gilles
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top