Re: PRB: CGI under IIS throws away printf on multiple posts.

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 03/23/05


Date: Tue, 22 Mar 2005 17:21:53 -0800

I'm sorry, but I do not understand your logic. Can you clarify what you
mean?

ASPSESSIONID is a cookie used by ASP to convey session state for ASP pages.
It means nothing to IIS, nor does it mean anything to CGI unless it is
written to recognize it. So, I do not see how a page passing back HTML (not
even response headers) is supposed to signal anything to IIS -- especially
when IIS does not parse HTML entity.

At this point, I have to say that everything you have observed is correct
and by design. Your problem is that your CGI lacks session serialization to
function correctly for your scenario. In other words, this is your code bug;
you fix it.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"ATS" <ATS@discussions.microsoft.com> wrote in message
news:3A7F5E60-12E6-4286-BBB7-3F58BC441A67@microsoft.com...
I have new information on this issue.
We tried to use a meta tag to pass back an ASPSESSIONID as a cookie, but it
did not prevent IIS from launchin two instances of our CGI.
Our format was as such:
<html>
  <head>
    <meta name="COOKIE" content="ASPSESSIONID=~~~Our Session ID~~~">
  </head>
  <boody>
  ~~~
  </body>
</html>
Our Session ID was just a simple 5 digit number like 12345.
We tried this, but when we double clicked quickly and preseed ENTER twice
quickyly, IIS still started two instances of our CGI and let the output of
the 2nd CGI instance override the 1st instance.


Relevant Pages

  • Re: CGI under IIS throws away printf on multiple posts.
    ... IIS is not throwing away anything. ... will have to implement in CGI, by taking a server-side lock to prevent the ... session from performing the operation a second consecutive time. ... "application session" (IIS is a high-performance server. ...
    (microsoft.public.inetserver.iis)
  • Re: IIS 6 is a steaming pile of shit
    ... >From the newsgroup, it looks like you got several answers. ... from ASP. ... IIS has no way to get that binary data to your CGI via environment ...
    (microsoft.public.inetserver.iis)
  • Re: Security of Excels and Documents on IIS
    ... > The ASP pages are secured using a session. ... Tom Kaminski IIS MVP ...
    (microsoft.public.inetserver.iis.security)
  • PRB: CGI under IIS throws away printf on multiple posts.
    ... We have a Server down issue. ... We have just discovered a terrible problem with a CGI application of ours. ... We have traced that what happens in this situation is that IIS ... Force IIS to NOT invoke a second CGI instance for the same session. ...
    (microsoft.public.inetserver.iis)
  • Re: JSP include directive (perhaps newby)
    ... the same page-embedding syntax as ASP on IIS, and similar request, session, and other objects. ...
    (comp.lang.perl.misc)