Re: Setting session variables other than with set-cookie http header

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Phillip Windell (_at_.)
Date: 02/27/04


Date: Fri, 27 Feb 2004 16:00:46 -0600

ASP and web caching are like oil and water. You should not want your ASP
pages cached to begin with. ASP runs server-side and must check the session
cookie with each request to be able to "maintain state" with the user. If
the page is cached and the user gets it from the cache, then the ASP doesn't
run, the session cookie isn't tested and state isn't maintained. So ISA
probably isn't caching some of the pages because it knows that is the right
thing to do.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Moshe Rosenberg" <moishier_remove_this_part@hotmail.com> wrote in message
news:OZoIH5U$DHA.1796@TK2MSFTNGP12.phx.gbl...
I am using ISS Server's pulishing feature to cache our dynamic website.
We have discovered that some pages were not being cached, and we tracked it
down to the fact that on the initial session there is a set-cookie header
returned. That is for session-variables, that we need for the working of our
site.
What solutions are there to not send that http header, and yet still use
session variables? Can you make it use another name? Any other idea?
Has anyone else grappled with this issue too?
Thanks!


Relevant Pages

  • Re: How do u set classic ASP session variables from an ASP.NET application???
    ... "How to Share Session State Between Classic ASP and ASP.NET" ... > public class ASPSession ... > public String this ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: session sharing from ASP to ASP.NET
    ... ASP and ASP.NET do not share session data. ... their code within the context of the Classic ASP "Engine". ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP sessionstate
    ... ASP doesn't know or care what browser it ... If html is already sent ... What is a session number? ... Session initialisation is done by the server system, ...
    (microsoft.public.inetserver.asp.general)
  • session_start problems among other things?
    ... The third party has a shopping cart which must be saved in the ... the hosted server that we do not see on our internal development ... save and restore the cart to the session so as to concentrate the ... ASP.NET APIs could be called from ASP pages but the development was ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS 6 loses ASP sessions
    ... ASP bug with keeping track of session IDs -- hard to imagine since it'd ... include crashes happening in the worker process (different process identity ... unless we run IIS 6.0 in 5.0 Isolation Mode. ...
    (microsoft.public.inetserver.iis)