(Bug?) IIS Sends response to wrong client

Discussion in 'ASP .Net Security' started by Gilles, Feb 22, 2005.

  1. Gilles

    Gilles Guest

    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
     
    Gilles, Feb 22, 2005
    #1
    1. Advertising

  2. Gilles

    Geir Aamodt Guest

    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?

    --

    Best regards,
    Geir Aamodt
    geir.aamodt(AT)bekk.no

    "Gilles" <> wrote in message
    news:...
    > 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
     
    Geir Aamodt, Feb 23, 2005
    #2
    1. Advertising

  3. Gilles

    Gilles Guest

    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

    "Geir Aamodt" wrote:

    > 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?
    >
    > --
    >
    > Best regards,
    > Geir Aamodt
    > geir.aamodt(AT)bekk.no
    >
    > "Gilles" <> wrote in message
    > news:...
    > > 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

    >
    >
    >
     
    Gilles, Feb 23, 2005
    #3
  4. Gilles

    PL Guest

    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.

    "Gilles" <> skrev i meddelandet news:...
    > 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
    >
    > "Geir Aamodt" wrote:
    >
    >> 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?
    >>
    >> --
    >>
    >> Best regards,
    >> Geir Aamodt
    >> geir.aamodt(AT)bekk.no
    >>
    >> "Gilles" <> wrote in message
    >> news:...
    >> > 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

    >>
    >>
    >>
     
    PL, Feb 25, 2005
    #4
  5. Gilles

    Gilles Guest

    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

    "PL" wrote:

    >
    >
    > 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.
    >
    > "Gilles" <> skrev i meddelandet news:...
    > > 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
    > >
    > > "Geir Aamodt" wrote:
    > >
    > >> 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?
    > >>
    > >> --
    > >>
    > >> Best regards,
    > >> Geir Aamodt
    > >> geir.aamodt(AT)bekk.no
    > >>
    > >> "Gilles" <> wrote in message
    > >> news:...
    > >> > 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
    > >>
    > >>
    > >>

    >
    >
    >
     
    Gilles, Feb 28, 2005
    #5
    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. JCardinal
    Replies:
    1
    Views:
    2,800
    Guenther Liebowitz
    Aug 14, 2003
  2. Replies:
    4
    Views:
    2,705
  3. BGU

    IIS sends empty .CSS file

    BGU, Jul 13, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    1,823
  4. Alessandro
    Replies:
    0
    Views:
    296
    Alessandro
    Sep 22, 2009
  5. Sandy
    Replies:
    7
    Views:
    171
    Paul Glavich [MVP ASP.NET]
    Jan 15, 2005
Loading...

Share This Page