Hello,

I am having some session problems with a mixed asp/asp.net application.
My application works well on Win 2000 Server (all versions) and on Win 2003
(first edition), but on Win 2003 R2 I've a lot of problem.
On specific ASP pages my application looses all the session variables.In
other cases
it looses the session varables at random.

I checked all settings, IIS permissions, app pools, turned off recycling,
etc. This configuration is the same as different servers run Win 2003 (first
edition) where the application works well. I'm not using global.asa.

Where else can I look? What else can I do?

Thanks,
Roberto

Re: Session variables problem on Win 2003 R2 by Bernard

Bernard
Thu Nov 23 22:01:23 CST 2006

session lost only in R2 ? randomly?
many possible causes
http://classicasp.aspfaq.com/general/why-won-t-my-session-variables-stick.html

also if you have web garden defined for the app pool, you will see this
behavior as well.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"rmarelli" <rmarelli@discussions.microsoft.com> wrote in message
news:605B108F-1B10-4DB5-AA06-C252E7533B0F@microsoft.com...
> Hello,
>
> I am having some session problems with a mixed asp/asp.net application.
> My application works well on Win 2000 Server (all versions) and on Win
> 2003
> (first edition), but on Win 2003 R2 I've a lot of problem.
> On specific ASP pages my application looses all the session variables.In
> other cases
> it looses the session varables at random.
>
> I checked all settings, IIS permissions, app pools, turned off recycling,
> etc. This configuration is the same as different servers run Win 2003
> (first
> edition) where the application works well. I'm not using global.asa.
>
> Where else can I look? What else can I do?
>
> Thanks,
> Roberto



Re: Session variables problem on Win 2003 R2 by David

David
Fri Nov 24 07:59:39 CST 2006

IIS6 did not change between Windows Server 2003 and R2 and is not
responsible for maintaining sessions (the application framework, like
ASP and ASP.Net, are responsible for maintaining sessions), so
technically, this is not an issue with IIS, permissions, nor its
settings.

I would start by asking if you have the same .Net Framework versions
installed.

Then I want to know whether you are using ASP.Net cookie-less session
state.

I would then take a network trace between the server and client while
you access the problematic web pages, illustrating where the session
variables are lost.

We need to determine if you are losing sessions because the wrong
cookies or URL are sent by the browser, or if the right cookies got to
the server but the application framework on the server lost the
sessions.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


Bernard Cheah [MVP] wrote:
> session lost only in R2 ? randomly?
> many possible causes
> http://classicasp.aspfaq.com/general/why-won-t-my-session-variables-stick.html
>
> also if you have web garden defined for the app pool, you will see this
> behavior as well.
>
> --
> Regards,
> Bernard Cheah
> http://www.iis.net/
> http://www.iis-resources.com/
> http://msmvps.com/blogs/bernard/
>
>
> "rmarelli" <rmarelli@discussions.microsoft.com> wrote in message
> news:605B108F-1B10-4DB5-AA06-C252E7533B0F@microsoft.com...
> > Hello,
> >
> > I am having some session problems with a mixed asp/asp.net application.
> > My application works well on Win 2000 Server (all versions) and on Win
> > 2003
> > (first edition), but on Win 2003 R2 I've a lot of problem.
> > On specific ASP pages my application looses all the session variables.In
> > other cases
> > it looses the session varables at random.
> >
> > I checked all settings, IIS permissions, app pools, turned off recycling,
> > etc. This configuration is the same as different servers run Win 2003
> > (first
> > edition) where the application works well. I'm not using global.asa.
> >
> > Where else can I look? What else can I do?
> >
> > Thanks,
> > Roberto


Re: Session variables problem on Win 2003 R2 by rmarelli

rmarelli
Mon Nov 27 04:44:01 CST 2006

Yes,I've the same .Net Framework versions installed and yes, I'm using
ASP.Net cookie-less session state (Session state mode: InProc ; Cookieless
mode : UseCookies).
Using tcptrace I got a trace log.
How can I sent it to you?

Regards

Roberto


"David Wang" wrote:

> IIS6 did not change between Windows Server 2003 and R2 and is not
> responsible for maintaining sessions (the application framework, like
> ASP and ASP.Net, are responsible for maintaining sessions), so
> technically, this is not an issue with IIS, permissions, nor its
> settings.
>
> I would start by asking if you have the same .Net Framework versions
> installed.
>
> Then I want to know whether you are using ASP.Net cookie-less session
> state.
>
> I would then take a network trace between the server and client while
> you access the problematic web pages, illustrating where the session
> variables are lost.
>
> We need to determine if you are losing sessions because the wrong
> cookies or URL are sent by the browser, or if the right cookies got to
> the server but the application framework on the server lost the
> sessions.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
> Bernard Cheah [MVP] wrote:
> > session lost only in R2 ? randomly?
> > many possible causes
> > http://classicasp.aspfaq.com/general/why-won-t-my-session-variables-stick.html
> >
> > also if you have web garden defined for the app pool, you will see this
> > behavior as well.
> >
> > --
> > Regards,
> > Bernard Cheah
> > http://www.iis.net/
> > http://www.iis-resources.com/
> > http://msmvps.com/blogs/bernard/
> >
> >
> > "rmarelli" <rmarelli@discussions.microsoft.com> wrote in message
> > news:605B108F-1B10-4DB5-AA06-C252E7533B0F@microsoft.com...
> > > Hello,
> > >
> > > I am having some session problems with a mixed asp/asp.net application.
> > > My application works well on Win 2000 Server (all versions) and on Win
> > > 2003
> > > (first edition), but on Win 2003 R2 I've a lot of problem.
> > > On specific ASP pages my application looses all the session variables.In
> > > other cases
> > > it looses the session varables at random.
> > >
> > > I checked all settings, IIS permissions, app pools, turned off recycling,
> > > etc. This configuration is the same as different servers run Win 2003
> > > (first
> > > edition) where the application works well. I'm not using global.asa.
> > >
> > > Where else can I look? What else can I do?
> > >
> > > Thanks,
> > > Roberto
>
>

Re: Session variables problem on Win 2003 R2 by rmarelli

rmarelli
Mon Nov 27 05:46:01 CST 2006

I wish include the following information.
First, normally my application run on Win 2003 Server Italian version,
instead I'm testing my appication on an English version of Win 2003 R2.
Second, I've isolated the last tcp events.The following text is the result
of this trace:
--------------------------------------------------------------------------------------------------
POST /OIM_PIInserimentoSalva.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
Referer: http://localhost:8080/OIM_PIInserimentoSalva.asp
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
Host: localhost:8080
Content-Length: 754
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: TipoInser=0; KEY20=; KEY19=; KEY22=; KEY26=; KEY14=; KEY8=; KEY25=;
KEY13=; KEY24=; KEY17=; KEY21=; KEY5=; KEY18=; KEY16=; KEY7=; KEY15=; KEY4=;
KEY11=; KEY23=

TipoInserimento=0&TipoProtocollo=2&IDUtente=&IDKey=&DatiInsert=&Colonne=KEY1%2C+KEY4%2C+KEY5%2C+KEY7%2C+KEY8%2C+KEY11%2C+KEY13%2C+KEY14%2C+KEY15%2C+KEY16%2C+KEY17%2C+KEY18%2C+KEY19%2C+KEY20%2C+KEY21%2C+KEY22%2C+KEY23%2C+KEY24%2C+KEY25%2C+KEY26&Valori=%27E%27%2C+%27a%27%2C+%27a%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27&Indice=11&ControlloDati=0&KEY1_H=&KEY2_H=&KEY3_H=&KEY4_H=a&KEY5_H=a&KEY6_H=&KEY7_H=&KEY8_H=&KEY9_H=&KEY10_H=&KEY11_H=&KEY12_H=&KEY13_H=&KEY14_H=&KEY15_H=&KEY16_H=&KEY17_H=&KEY18_H=&KEY19_H=&KEY20_H=&KEY21_H=&KEY22_H=&KEY23_H=&KEY24_H=&KEY25_H=&KEY26_H=&NextProt_h=0&IDUtenteAssegnatario_h=&NextProtFasc=

----------------------------------------------------------------------------------------------------

HTTP/1.1 200 OK
Date: Mon, 27 Nov 2006 11:17:03 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 299
Content-Type: text/html
Set-Cookie: ASPSESSIONIDCARTCADR=AGOHBJFBMKIHCDHGLGIPBOND; path=/
Cache-control: private

<html>
<head><title>Errore Connessione</title></head>
<body>
<center>
<br><font color='#000000' face='tahoma' size='1'><b>ATTENZIONE</b>: La
connessione non è più attiva. Eseguire il login!<hr> <i>Se il problema
persiste contattare l'amministrazione.</i></font>
</center>

<body>
</html>

----------------------------------------------------------------------------------------------------

Regards
Roberto

"David Wang" wrote:

> IIS6 did not change between Windows Server 2003 and R2 and is not
> responsible for maintaining sessions (the application framework, like
> ASP and ASP.Net, are responsible for maintaining sessions), so
> technically, this is not an issue with IIS, permissions, nor its
> settings.
>
> I would start by asking if you have the same .Net Framework versions
> installed.
>
> Then I want to know whether you are using ASP.Net cookie-less session
> state.
>
> I would then take a network trace between the server and client while
> you access the problematic web pages, illustrating where the session
> variables are lost.
>
> We need to determine if you are losing sessions because the wrong
> cookies or URL are sent by the browser, or if the right cookies got to
> the server but the application framework on the server lost the
> sessions.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
> Bernard Cheah [MVP] wrote:
> > session lost only in R2 ? randomly?
> > many possible causes
> > http://classicasp.aspfaq.com/general/why-won-t-my-session-variables-stick.html
> >
> > also if you have web garden defined for the app pool, you will see this
> > behavior as well.
> >
> > --
> > Regards,
> > Bernard Cheah
> > http://www.iis.net/
> > http://www.iis-resources.com/
> > http://msmvps.com/blogs/bernard/
> >
> >
> > "rmarelli" <rmarelli@discussions.microsoft.com> wrote in message
> > news:605B108F-1B10-4DB5-AA06-C252E7533B0F@microsoft.com...
> > > Hello,
> > >
> > > I am having some session problems with a mixed asp/asp.net application.
> > > My application works well on Win 2000 Server (all versions) and on Win
> > > 2003
> > > (first edition), but on Win 2003 R2 I've a lot of problem.
> > > On specific ASP pages my application looses all the session variables.In
> > > other cases
> > > it looses the session varables at random.
> > >
> > > I checked all settings, IIS permissions, app pools, turned off recycling,
> > > etc. This configuration is the same as different servers run Win 2003
> > > (first
> > > edition) where the application works well. I'm not using global.asa.
> > >
> > > Where else can I look? What else can I do?
> > >
> > > Thanks,
> > > Roberto
>
>