473,700 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session empty

hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i visit
again .... null ... again .... it works ..... again ... it works ... again
..... null....... and so on and on ....
it does randomly work or not....

what is this effect?

thanks
alex
Nov 19 '05 #1
13 2841
Offhand, I'd say there is something wrong with your code. Based on your
description of the problem, and your description of your code, that's all I
can say without making wild assumptions. Well, there is one other thing I
can tell you: it's not random. It just seems random to you because you do
not know the cause.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> wrote in message
news:eh******** ******@TK2MSFTN GP14.phx.gbl...
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i visit
again .... null ... again .... it works ..... again ... it works ... again
.... null....... and so on and on ....
it does randomly work or not....

what is this effect?

thanks
alex

Nov 19 '05 #2
i can't understand it .... i don't find the cause...
It seems there are 2 versions of the sesssion... but there aren't 2
sessions.... the sessionID is always the same ... I did a Response.Write for
the SessionID ....
but sometimes there is this effect:
At the beginning the Session-Var I call it now "basket" (because it is a
shop-basket) is null...
every time a page is called it is tested if "basket==nu ll" ... if so,
"basket = new Basket();".... then it should never be "null" ... but it get's
sometimes again "null"
and than this: i add an item to the basket .... and i click on the overview
of the basket ... the basket is either null or it has this item....
and it's getting much more better: i add another item ... and sometimes the
basket exists two times .... one basket with item1 and the other with item2
.... or the other basket is simply null ... i can't understand this ...
.... but there are only 2 versions of the basket.. .there are not more ....
(or less)
Help me, PLEASE.

thanks.. alex

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> schrieb im Newsbeitrag
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Offhand, I'd say there is something wrong with your code. Based on your
description of the problem, and your description of your code, that's all
I can say without making wild assumptions. Well, there is one other thing
I can tell you: it's not random. It just seems random to you because you
do not know the cause.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> wrote in message
news:eh******** ******@TK2MSFTN GP14.phx.gbl...
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i visit
again .... null ... again .... it works ..... again ... it works ...
again .... null....... and so on and on ....
it does randomly work or not....

what is this effect?

thanks
alex



Nov 19 '05 #3
I ask again .... how could that be???
I "login" and create a session var and fill it.... and on an other page ....
(frames!) i get randomly null or the content of the sessionvar ....
please help me ... i'm going mad
"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> schrieb im
Newsbeitrag news:eB******** ******@TK2MSFTN GP09.phx.gbl...
i can't understand it .... i don't find the cause...
It seems there are 2 versions of the sesssion... but there aren't 2
sessions.... the sessionID is always the same ... I did a Response.Write
for
the SessionID ....
but sometimes there is this effect:
At the beginning the Session-Var I call it now "basket" (because it is a
shop-basket) is null...
every time a page is called it is tested if "basket==nu ll" ... if so,
"basket = new Basket();".... then it should never be "null" ... but it
get's sometimes again "null"
and than this: i add an item to the basket .... and i click on the
overview of the basket ... the basket is either null or it has this
item....
and it's getting much more better: i add another item ... and sometimes
the basket exists two times .... one basket with item1 and the other with
item2 ... or the other basket is simply null ... i can't understand this
...
... but there are only 2 versions of the basket.. .there are not more ....
(or less)
Help me, PLEASE.

thanks.. alex

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> schrieb im Newsbeitrag
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Offhand, I'd say there is something wrong with your code. Based on your
description of the problem, and your description of your code, that's all
I can say without making wild assumptions. Well, there is one other thing
I can tell you: it's not random. It just seems random to you because you
do not know the cause.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> wrote in message
news:eh******** ******@TK2MSFTN GP14.phx.gbl...
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i visit
again .... null ... again .... it works ..... again ... it works ...
again .... null....... and so on and on ....
it does randomly work or not....

what is this effect?

thanks
alex



Nov 19 '05 #4
For now you are talking a session variable but the snippet you gave uses
just a "basket" variable and we don't see how it is handled in regards with
the session variable...

The *minimal* amount of code that shows the problem could help (and could
perhaps helps to solve this problem yourself).

Do you do conflicting things on the pages that are part of this frameset...

Patrice
--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
message de news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I ask again .... how could that be???
I "login" and create a session var and fill it.... and on an other page ..... (frames!) i get randomly null or the content of the sessionvar ....
please help me ... i'm going mad
"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> schrieb im
Newsbeitrag news:eB******** ******@TK2MSFTN GP09.phx.gbl...
i can't understand it .... i don't find the cause...
It seems there are 2 versions of the sesssion... but there aren't 2
sessions.... the sessionID is always the same ... I did a Response.Write
for
the SessionID ....
but sometimes there is this effect:
At the beginning the Session-Var I call it now "basket" (because it is a
shop-basket) is null...
every time a page is called it is tested if "basket==nu ll" ... if so,
"basket = new Basket();".... then it should never be "null" ... but it
get's sometimes again "null"
and than this: i add an item to the basket .... and i click on the
overview of the basket ... the basket is either null or it has this
item....
and it's getting much more better: i add another item ... and sometimes
the basket exists two times .... one basket with item1 and the other with item2 ... or the other basket is simply null ... i can't understand this
...
... but there are only 2 versions of the basket.. .there are not more ..... (or less)
Help me, PLEASE.

thanks.. alex

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> schrieb im Newsbeitrag news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Offhand, I'd say there is something wrong with your code. Based on your
description of the problem, and your description of your code, that's all I can say without making wild assumptions. Well, there is one other thing I can tell you: it's not random. It just seems random to you because you do not know the cause.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> wrote in message news:eh******** ******@TK2MSFTN GP14.phx.gbl...
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i visit again .... null ... again .... it works ..... again ... it works ...
again .... null....... and so on and on ....
it does randomly work or not....

what is this effect?

thanks
alex



Nov 19 '05 #5
ok... all details.... i tried some other simple code .. and the same problem

sessiontest1.as px:
<%@ Page Language="C#" ContentType="te xt/html" ResponseEncodin g="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Objec t sender, EventArgs e)
{
Session.Add("te stvar", "123");
if (Application["timestamp"]==null) Application.Add ("timestamp" ,
DateTime.Now);
}
</script>

No error on call.... .... it creates a sessionvar named "testvar" and sets
the value to "123" ... the script also sets an applicationvar "timestamp" to
the current time.

sessiontest2.as px
<%@ Page Language="C#" ContentType="te xt/html" ResponseEncodin g="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(objec t sender, EventArgs e)
{
Response.Write( "tv: " + Session["testvar"] + " and TS:
"+Applicati on["timestamp"]);
}
</script>

A simple output .... but sometimes the sessionvar is null.. .and sometimes
it is "123"...

After many tries I also found out, that it's the same with the
applicationvar .... both "disappear" at the same time ....

I have a trace for you....
at first the trace with both vars working:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:53:06 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western
European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000018 0,000018
aspx.page Begin PreRender 0,000084 0,000066
aspx.page End PreRender 0,000104 0,000020
aspx.page Begin SaveViewState 0,000149 0,000045
aspx.page End SaveViewState 0,000165 0,000016
aspx.page Begin Render 0,000180 0,000015
aspx.page End Render 0,000468 0,000288
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Session state
Session Key Type Value
testvar System.String 123
Application State
Application Key Type Value
Uhrzeit System.DateTime 18.05.2005 12:45:58
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host www.xxxxxxxxxxxxxxxxxx.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300
HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk
HTTP_HOST:http://www.xxxxxxxxxxxxxxxxxx.comHTT...NT:Mozilla/5.0 (Windows; U;
Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive:
300 Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host:
www.xxxxxxxxxxxxxxxxxx.comUser-Agent : Mozilla/5.0 (Windows; U; Windows NT
5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


And now the trace when the vars are null or doesn't exist:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:56:28 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western
European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000019 0,000019
aspx.page Begin PreRender 0,000058 0,000039
aspx.page End PreRender 0,000074 0,000016
aspx.page Begin SaveViewState 0,000133 0,000058
aspx.page End SaveViewState 0,000149 0,000017
aspx.page Begin Render 0,000164 0,000015
aspx.page End Render 0,000446 0,000282
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host XXXXXXXX
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300
HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk HTTP_HOST:XXXXX XXX
HTTP_USER_AGENT :Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive:
300 Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host: XXXXXXXX User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511
Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


and that's it .. .i don't know more .... there must be something wrong in
the prefences of the server ... but what? and where?

no Application_Sta rt() event is called meanwhile .... if it would be so... i
would get an email...

please help me
Nov 19 '05 #6
And how are these pages related ? Are they both used in the frameset ?

In particular if they are both used in the same frameset I'm not sure the
order in which they are called is predictable.

I would do something like :
- in both pages add something to the current value of the testvar variable
(such as a datetime and the name of the page) and display the value
- this way when printed you'll see in whic order it was loaded

You could also simply try to see in the IIS log if one is always called
before the other or if it's sometimes the other way round...
--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
message de news:um******** *******@TK2MSFT NGP14.phx.gbl.. .
ok... all details.... i tried some other simple code .. and the same problem
sessiontest1.as px:
<%@ Page Language="C#" ContentType="te xt/html" ResponseEncodin g="iso-8859-1" Trace="true" %>
<script runat="server">
public void Page_Load(Objec t sender, EventArgs e)
{
Session.Add("te stvar", "123");
if (Application["timestamp"]==null) Application.Add ("timestamp" ,
DateTime.Now);
}
</script>

No error on call.... .... it creates a sessionvar named "testvar" and sets
the value to "123" ... the script also sets an applicationvar "timestamp" to the current time.

sessiontest2.as px
<%@ Page Language="C#" ContentType="te xt/html" ResponseEncodin g="iso-8859-1" Trace="true" %>
<script runat="server">
void Page_Load(objec t sender, EventArgs e)
{
Response.Write( "tv: " + Session["testvar"] + " and TS:
"+Applicati on["timestamp"]);
}
</script>

A simple output .... but sometimes the sessionvar is null.. .and sometimes
it is "123"...

After many tries I also found out, that it's the same with the
applicationvar .... both "disappear" at the same time ....

I have a trace for you....
at first the trace with both vars working:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:53:06 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western
European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000018 0,000018
aspx.page Begin PreRender 0,000084 0,000066
aspx.page End PreRender 0,000104 0,000020
aspx.page Begin SaveViewState 0,000149 0,000045
aspx.page End SaveViewState 0,000165 0,000016
aspx.page Begin Render 0,000180 0,000015
aspx.page End Render 0,000468 0,000288
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Session state
Session Key Type Value
testvar System.String 123
Application State
Application Key Type Value
Uhrzeit System.DateTime 18.05.2005 12:45:58
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host www.xxxxxxxxxxxxxxxxxx.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300
HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t
ext/plain;q=0.8,ima ge/png,*/*;q=0.5 HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk
HTTP_HOST:http://www.xxxxxxxxxxxxxxxxxx.comHTT...NT:Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive:
300 Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host:
www.xxxxxxxxxxxxxxxxxx.comUser-Agent : Mozilla/5.0 (Windows; U; Windows NT
5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


And now the trace when the vars are null or doesn't exist:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:56:28 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western
European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000019 0,000019
aspx.page Begin PreRender 0,000058 0,000039
aspx.page End PreRender 0,000074 0,000016
aspx.page Begin SaveViewState 0,000133 0,000058
aspx.page End SaveViewState 0,000149 0,000017
aspx.page Begin Render 0,000164 0,000015
aspx.page End Render 0,000446 0,000282
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host XXXXXXXX
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300
HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t
ext/plain;q=0.8,ima ge/png,*/*;q=0.5 HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk HTTP_HOST:XXXXX XXX
HTTP_USER_AGENT :Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive:
300 Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host: XXXXXXXX User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511
Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


and that's it .. .i don't know more .... there must be something wrong in
the prefences of the server ... but what? and where?

no Application_Sta rt() event is called meanwhile .... if it would be so... i would get an email...

please help me

Nov 19 '05 #7
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.as px and after it the
sessiontest2.as px
"Patrice" <no****@nowhere .com> schrieb im Newsbeitrag
news:Oj******** *****@TK2MSFTNG P12.phx.gbl...
And how are these pages related ? Are they both used in the frameset ?

In particular if they are both used in the same frameset I'm not sure the
order in which they are called is predictable.

I would do something like :
- in both pages add something to the current value of the testvar variable
(such as a datetime and the name of the page) and display the value
- this way when printed you'll see in whic order it was loaded

You could also simply try to see in the IIS log if one is always called
before the other or if it's sometimes the other way round...
--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
message de news:um******** *******@TK2MSFT NGP14.phx.gbl.. .
ok... all details.... i tried some other simple code .. and the same

problem

sessiontest1.as px:
<%@ Page Language="C#" ContentType="te xt/html"

ResponseEncodin g="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Objec t sender, EventArgs e)
{
Session.Add("te stvar", "123");
if (Application["timestamp"]==null) Application.Add ("timestamp" ,
DateTime.Now);
}
</script>

No error on call.... .... it creates a sessionvar named "testvar" and
sets
the value to "123" ... the script also sets an applicationvar "timestamp"

to
the current time.

sessiontest2.as px
<%@ Page Language="C#" ContentType="te xt/html"

ResponseEncodin g="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(objec t sender, EventArgs e)
{
Response.Write( "tv: " + Session["testvar"] + " and TS:
"+Applicati on["timestamp"]);
}
</script>

A simple output .... but sometimes the sessionvar is null.. .and
sometimes
it is "123"...

After many tries I also found out, that it's the same with the
applicationvar .... both "disappear" at the same time ....

I have a trace for you....
at first the trace with both vars working:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:53:06 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western
European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000018 0,000018
aspx.page Begin PreRender 0,000084 0,000066
aspx.page End PreRender 0,000104 0,000020
aspx.page Begin SaveViewState 0,000149 0,000045
aspx.page End SaveViewState 0,000165 0,000016
aspx.page Begin Render 0,000180 0,000015
aspx.page End Render 0,000468 0,000288
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate

Size
Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Session state
Session Key Type Value
testvar System.String 123
Application State
Application Key Type Value
Uhrzeit System.DateTime 18.05.2005 12:45:58
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host www.xxxxxxxxxxxxxxxxxx.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300

HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t
ext/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk
HTTP_HOST:http://www.xxxxxxxxxxxxxxxxxx.comHTT...NT:Mozilla/5.0 (Windows;

U;
Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive:
300 Accept:

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:

gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host:
www.xxxxxxxxxxxxxxxxxx.comUser-Agent : Mozilla/5.0 (Windows; U; Windows
NT
5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


And now the trace when the vars are null or doesn't exist:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:56:28 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western
European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000019 0,000019
aspx.page Begin PreRender 0,000058 0,000039
aspx.page End PreRender 0,000074 0,000016
aspx.page Begin SaveViewState 0,000133 0,000058
aspx.page End SaveViewState 0,000149 0,000017
aspx.page Begin Render 0,000164 0,000015
aspx.page End Render 0,000446 0,000282
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate

Size
Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host XXXXXXXX
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300

HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t
ext/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk HTTP_HOST:XXXXX XXX
HTTP_USER_AGENT :Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive:
300 Accept:

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:

gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host: XXXXXXXX User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511
Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


and that's it .. .i don't know more .... there must be something wrong in
the prefences of the server ... but what? and where?

no Application_Sta rt() event is called meanwhile .... if it would be
so...

i
would get an email...

please help me


Nov 19 '05 #8
Output also the current date and time as well as the session id (to make
sure there is no cache issue and to see if the session is the same or not).
You could as well try Session.IsNew (if I remember) to see if it's
considered as a new session (despite perhaps using the same id as you
mentionned)..

Though you mentionned that the aplication doesn't restart could you double
check this (for example using the performance counter or by using
programmaticall y System.Web.Proc essModelInfo.Ge tHistory)... If the
application restarts it could perhaps loose the session variable while
keeping the same session id...

BTW do you still use frames ? Does it happens without frames ?

Good luck.

Patrice

--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
message de news:ea******** ******@TK2MSFTN GP12.phx.gbl...
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.as px and after it the
sessiontest2.as px
"Patrice" <no****@nowhere .com> schrieb im Newsbeitrag
news:Oj******** *****@TK2MSFTNG P12.phx.gbl...
And how are these pages related ? Are they both used in the frameset ?

In particular if they are both used in the same frameset I'm not sure the order in which they are called is predictable.

I would do something like :
- in both pages add something to the current value of the testvar variable (such as a datetime and the name of the page) and display the value
- this way when printed you'll see in whic order it was loaded

You could also simply try to see in the IIS log if one is always called
before the other or if it's sometimes the other way round...
--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
message de news:um******** *******@TK2MSFT NGP14.phx.gbl.. .
ok... all details.... i tried some other simple code .. and the same

problem

sessiontest1.as px:
<%@ Page Language="C#" ContentType="te xt/html"

ResponseEncodin g="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Objec t sender, EventArgs e)
{
Session.Add("te stvar", "123");
if (Application["timestamp"]==null) Application.Add ("timestamp" ,
DateTime.Now);
}
</script>

No error on call.... .... it creates a sessionvar named "testvar" and
sets
the value to "123" ... the script also sets an applicationvar "timestamp"
to
the current time.

sessiontest2.as px
<%@ Page Language="C#" ContentType="te xt/html"

ResponseEncodin g="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(objec t sender, EventArgs e)
{
Response.Write( "tv: " + Session["testvar"] + " and TS:
"+Applicati on["timestamp"]);
}
</script>

A simple output .... but sometimes the sessionvar is null.. .and
sometimes
it is "123"...

After many tries I also found out, that it's the same with the
applicationvar .... both "disappear" at the same time ....

I have a trace for you....
at first the trace with both vars working:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:53:06 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding:
Western European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000018 0,000018
aspx.page Begin PreRender 0,000084 0,000066
aspx.page End PreRender 0,000104 0,000020
aspx.page Begin SaveViewState 0,000149 0,000045
aspx.page End SaveViewState 0,000165 0,000016
aspx.page Begin Render 0,000180 0,000015
aspx.page End Render 0,000468 0,000288
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate

Size
Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Session state
Session Key Type Value
testvar System.String 123
Application State
Application Key Type Value
Uhrzeit System.DateTime 18.05.2005 12:45:58
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host www.xxxxxxxxxxxxxxxxxx.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300

HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t ext/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk
HTTP_HOST:http://www.xxxxxxxxxxxxxxxxxx.comHTT...NT:Mozilla/5.0 (Windows;
U;
Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive
Keep-Alive: 300 Accept:

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:

gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host:
www.xxxxxxxxxxxxxxxxxx.comUser-Agent : Mozilla/5.0 (Windows; U; Windows
NT
5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


And now the trace when the vars are null or doesn't exist:

Request Details
Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
Time of Request: 18.05.2005 12:56:28 Status Code: 200
Request Encoding: Western European (ISO) Response Encoding: Western European (ISO)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0,000019 0,000019
aspx.page Begin PreRender 0,000058 0,000039
aspx.page End PreRender 0,000074 0,000016
aspx.page Begin SaveViewState 0,000133 0,000058
aspx.page End SaveViewState 0,000149 0,000017
aspx.page Begin Render 0,000164 0,000015
aspx.page End Render 0,000446 0,000282
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate

Size
Bytes (excluding children)
__PAGE ASP.sessiontest 2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
Headers Collection
Name Value
Cache-Control max-age=0
Connection keep-alive
Keep-Alive 300
Accept

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
Host XXXXXXXX
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Server Variables
Name Value
ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
HTTP_KEEP_ALIVE :300

HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t ext/plain;q=0.8,ima ge/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING:gzip,defl ate
HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk HTTP_HOST:XXXXX XXX HTTP_USER_AGENT :Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive: 300 Accept:

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:

gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host: XXXXXXXX User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
APPL_MD_PATH /LM/W3SVC/1072123260/Root
APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1072123260
INSTANCE_META_P ATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.as px
PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.as px
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.as px
HTTP_CACHE_CONT ROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_ACCEPT

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENC ODING gzip,deflate
HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
HTTP_HOST XXXXXXXX
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
rv:1.7.8) Gecko/20050511 Firefox/1.0.4


and that's it .. .i don't know more .... there must be something wrong in the prefences of the server ... but what? and where?

no Application_Sta rt() event is called meanwhile .... if it would be
so...

i
would get an email...

please help me



Nov 19 '05 #9
i'm not using frames in my test-environment ...
How du I use System.Web.Proc essModelInfo.Ge tHistory ?
BTW the applicationstat e and the sessionstate variables are disappearing
independet of each other.

"Patrice" <no****@nowhere .com> schrieb im Newsbeitrag
news:eh******** ******@TK2MSFTN GP10.phx.gbl...
Output also the current date and time as well as the session id (to make
sure there is no cache issue and to see if the session is the same or
not).
You could as well try Session.IsNew (if I remember) to see if it's
considered as a new session (despite perhaps using the same id as you
mentionned)..

Though you mentionned that the aplication doesn't restart could you double
check this (for example using the performance counter or by using
programmaticall y System.Web.Proc essModelInfo.Ge tHistory)... If the
application restarts it could perhaps loose the session variable while
keeping the same session id...

BTW do you still use frames ? Does it happens without frames ?

Good luck.

Patrice

--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
message de news:ea******** ******@TK2MSFTN GP12.phx.gbl...
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.as px and after it the
sessiontest2.as px
"Patrice" <no****@nowhere .com> schrieb im Newsbeitrag
news:Oj******** *****@TK2MSFTNG P12.phx.gbl...
> And how are these pages related ? Are they both used in the frameset ?
>
> In particular if they are both used in the same frameset I'm not sure the > order in which they are called is predictable.
>
> I would do something like :
> - in both pages add something to the current value of the testvar variable > (such as a datetime and the name of the page) and display the value
> - this way when printed you'll see in whic order it was loaded
>
> You could also simply try to see in the IIS log if one is always called
> before the other or if it's sometimes the other way round...
>
>
> --
>
> "Alexander Widera" <aw**@hrz.tu-chemnitz.de.inv alid.de> a écrit dans le
> message de news:um******** *******@TK2MSFT NGP14.phx.gbl.. .
>> ok... all details.... i tried some other simple code .. and the same
> problem
>>
>> sessiontest1.as px:
>> <%@ Page Language="C#" ContentType="te xt/html"
> ResponseEncodin g="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> public void Page_Load(Objec t sender, EventArgs e)
>> {
>> Session.Add("te stvar", "123");
>> if (Application["timestamp"]==null) Application.Add ("timestamp" ,
>> DateTime.Now);
>> }
>> </script>
>>
>> No error on call.... .... it creates a sessionvar named "testvar" and
>> sets
>> the value to "123" ... the script also sets an applicationvar "timestamp" > to
>> the current time.
>>
>> sessiontest2.as px
>> <%@ Page Language="C#" ContentType="te xt/html"
> ResponseEncodin g="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> void Page_Load(objec t sender, EventArgs e)
>> {
>> Response.Write( "tv: " + Session["testvar"] + " and TS:
>> "+Applicati on["timestamp"]);
>> }
>> </script>
>>
>> A simple output .... but sometimes the sessionvar is null.. .and
>> sometimes
>> it is "123"...
>>
>> After many tries I also found out, that it's the same with the
>> applicationvar .... both "disappear" at the same time ....
>>
>> I have a trace for you....
>> at first the trace with both vars working:
>>
>> Request Details
>> Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
>> Time of Request: 18.05.2005 12:53:06 Status Code: 200
>> Request Encoding: Western European (ISO) Response Encoding: Western >> European (ISO)
>> Trace Information
>> Category Message From First(s) From Last(s)
>> aspx.page Begin Init
>> aspx.page End Init 0,000018 0,000018
>> aspx.page Begin PreRender 0,000084 0,000066
>> aspx.page End PreRender 0,000104 0,000020
>> aspx.page Begin SaveViewState 0,000149 0,000045
>> aspx.page End SaveViewState 0,000165 0,000016
>> aspx.page Begin Render 0,000180 0,000015
>> aspx.page End Render 0,000468 0,000288
>> Control Tree
>> Control Id Type Render Size Bytes (including children) Viewstate
> Size
>> Bytes (excluding children)
>> __PAGE ASP.sessiontest 2_aspx 0 0
>> Session state
>> Session Key Type Value
>> testvar System.String 123
>> Application State
>> Application Key Type Value
>> Uhrzeit System.DateTime 18.05.2005 12:45:58
>> Cookies Collection
>> Name Value Size
>> ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
>> Headers Collection
>> Name Value
>> Cache-Control max-age=0
>> Connection keep-alive
>> Keep-Alive 300
>> Accept
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5
>> Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> Accept-Encoding gzip,deflate
>> Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
>> Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
>> Host www.xxxxxxxxxxxxxxxxxx.com
>> User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
>> rv:1.7.8)
>> Gecko/20050511 Firefox/1.0.4
>> Server Variables
>> Name Value
>> ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
>> HTTP_KEEP_ALIVE :300
>>
> HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t > ext/plain;q=0.8,ima ge/png,*/*;q=0.5
>> HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENC ODING:gzip,defl ate
>> HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
>> HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk
>> HTTP_HOST:http://www.xxxxxxxxxxxxxxxxxx.comHTT...NT:Mozilla/5.0 (Windows; > U;
>> Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
>> ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive: >> 300 Accept:
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5
>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:
> gzip,deflate
>> Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
>> ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host:
>> www.xxxxxxxxxxxxxxxxxx.comUser-Agent : Mozilla/5.0 (Windows; U;
>> Windows
>> NT
>> 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
>> APPL_MD_PATH /LM/W3SVC/1072123260/Root
>> APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYS IZE
>> CERT_SERIALNUMB ER
>> CERT_SERVER_ISS UER
>> CERT_SERVER_SUB JECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFA CE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEY SIZE
>> HTTPS_SERVER_IS SUER
>> HTTPS_SERVER_SU BJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_P ATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXXX
>> PATH_INFO /intern/sessiontest2.as px
>> PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXXX
>> REMOTE_HOST XXXXXXXXX
>> REMOTE_PORT 60224
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.as px
>> SERVER_NAME XXXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SEC URE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.as px
>> HTTP_CACHE_CONT ROL max-age=0
>> HTTP_CONNECTION keep-alive
>> HTTP_KEEP_ALIVE 300
>> HTTP_ACCEPT
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENC ODING gzip,deflate
>> HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
>> HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
>> HTTP_HOST XXXXXXXXX
>> HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
>> rv:1.7.8) Gecko/20050511 Firefox/1.0.4
>>
>>
>>
>>
>> And now the trace when the vars are null or doesn't exist:
>>
>> Request Details
>> Session Id: yiiqjj3qiqsguu5 5g4b1f4bk Request Type: GET
>> Time of Request: 18.05.2005 12:56:28 Status Code: 200
>> Request Encoding: Western European (ISO) Response Encoding: Western >> European (ISO)
>> Trace Information
>> Category Message From First(s) From Last(s)
>> aspx.page Begin Init
>> aspx.page End Init 0,000019 0,000019
>> aspx.page Begin PreRender 0,000058 0,000039
>> aspx.page End PreRender 0,000074 0,000016
>> aspx.page Begin SaveViewState 0,000133 0,000058
>> aspx.page End SaveViewState 0,000149 0,000017
>> aspx.page Begin Render 0,000164 0,000015
>> aspx.page End Render 0,000446 0,000282
>> Control Tree
>> Control Id Type Render Size Bytes (including children) Viewstate
> Size
>> Bytes (excluding children)
>> __PAGE ASP.sessiontest 2_aspx 0 0
>> Cookies Collection
>> Name Value Size
>> ASP.NET_Session Id yiiqjj3qiqsguu5 5g4b1f4bk 42
>> Headers Collection
>> Name Value
>> Cache-Control max-age=0
>> Connection keep-alive
>> Keep-Alive 300
>> Accept
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5
>> Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> Accept-Encoding gzip,deflate
>> Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
>> Cookie ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
>> Host XXXXXXXX
>> User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
>> rv:1.7.8)
>> Gecko/20050511 Firefox/1.0.4
>> Server Variables
>> Name Value
>> ALL_HTTP HTTP_CACHE_CONT ROL:max-age=0 HTTP_CONNECTION :keep-alive
>> HTTP_KEEP_ALIVE :300
>>
> HTTP_ACCEPT:tex t/xml,application/xml,application/xhtml+xml,text/html;q=0.9,t > ext/plain;q=0.8,ima ge/png,*/*;q=0.5
>> HTTP_ACCEPT_CHA RSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENC ODING:gzip,defl ate
>> HTTP_ACCEPT_LAN GUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
>> HTTP_COOKIE:ASP .NET_SessionId= yiiqjj3qiqsguu5 5g4b1f4bk HTTP_HOST:XXXXX XXX >> HTTP_USER_AGENT :Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) >> Gecko/20050511 Firefox/1.0.4
>> ALL_RAW Cache-Control: max-age=0 Connection: keep-alive Keep-Alive: >> 300 Accept:
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5
>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:
> gzip,deflate
>> Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3 Cookie:
>> ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk Host: XXXXXXXX User-Agent:
>> Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 >> Firefox/1.0.4
>> APPL_MD_PATH /LM/W3SVC/1072123260/Root
>> APPL_PHYSICAL_P ATH E:\Webpub\page1 23\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYS IZE
>> CERT_SERIALNUMB ER
>> CERT_SERVER_ISS UER
>> CERT_SERVER_SUB JECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFA CE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEY SIZE
>> HTTPS_SERVER_IS SUER
>> HTTPS_SERVER_SU BJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_P ATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXX
>> PATH_INFO /intern/sessiontest2.as px
>> PATH_TRANSLATED E:\Webpub\page1 23\intern\sessi ontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXX
>> REMOTE_HOST XXXXXXXX
>> REMOTE_PORT 60341
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.as px
>> SERVER_NAME XXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SEC URE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.as px
>> HTTP_CACHE_CONT ROL max-age=0
>> HTTP_CONNECTION keep-alive
>> HTTP_KEEP_ALIVE 300
>> HTTP_ACCEPT
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHA RSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENC ODING gzip,deflate
>> HTTP_ACCEPT_LAN GUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0 .3
>> HTTP_COOKIE ASP.NET_Session Id=yiiqjj3qiqsg uu55g4b1f4bk
>> HTTP_HOST XXXXXXXX
>> HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
>> rv:1.7.8) Gecko/20050511 Firefox/1.0.4
>>
>>
>>
>>
>> and that's it .. .i don't know more .... there must be something wrong in >> the prefences of the server ... but what? and where?
>>
>> no Application_Sta rt() event is called meanwhile .... if it would be
>> so...
> i
>> would get an email...
>>
>> please help me
>>
>>
>
>



Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2034
by: The Plankmeister | last post by:
Hi... I'm using session_set_save_handler() and have defined some functions to store session data in a database. It all works marvellously. Except for one small thing. If I do something like: ... if(isset($_SESSION)) ...
3
4710
by: Michelle | last post by:
Hi all, I am trying to store data in a $_SESSION variable (an array), but it reverts to empty every time my page is refreshed (due to a submit button click). I read the answer to the post "$_SESSION comes empty on next page" dated 2/4, whaich seems to be my problem. But the suggestions do not help me at all <see 1 & 2 below> 1-have you set session.save_path ?
2
2551
by: TattyMane bigpond.net.au> | last post by:
asp.net, visual studio 2003, IE6 I have a sample web page that is linked to another page. On the first page, I have a text box, on the second, the first page's text box text is displayed using a session variable. This works fine. However, when I return to the first page, the text box content is blank. If, prior to going to the second page, I hit 'refresh', the text disappears. If I add a button control to the page, and click it before...
9
3658
by: bajopalabra | last post by:
hi session("myVar") = rs.getRows( ) don't work when number of records is greater than 10 does anybody know WHY ??? is it a Session object limitation ??? thanks
9
2098
by: Patrick | last post by:
Hello I'm running two Webservers Using ASP.NET. both are running the same ASP.NET Application, with <sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=myserver;user id=myuser;password=mypw" cookieless="false" timeout="20" /> This seems to work. But we have cases, when users report that they loose the
7
2042
by: Mr Newbie | last post by:
I have written a Custom Control Menu. Its fairly simple but it works well enough. In order to simplify things I decided to store the Menu1 custom control in Session. In the page load event below, it retreives the Menu from session and assigns its reference to Menu1. Within the Page_Load event I can see its internal values which have been retreived for each menu item and so it looks good. However, when the Render method is called of...
2
13701
by: ronchese | last post by:
I'm noticing this since I started developing a website project: my session variables are getting empty! I did a real easy test, and I checked my session variable is getting empty!! What is happening? For example (VS2005, IE6/7, running in filesystem): - In the Page_load of page1.aspx: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Throw New Exception("Error is thrown") End Sub
2
2642
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't yet expired) to log in. That way if someone sticks a made-up session ID on a URL, it won't matter, unless it happens to correspond to an active session (guessing a user password is probably easier). Is this already standard practice, new, or is...
0
1278
by: David | last post by:
Hi, Every two seconds, the client callback starts sending a value to the server (via javascript). That value can be empty or not. The session variable "flag" gets the value "1" if the value is not empty (eventArgument length > 0). My problem is: once session("flag")="1" , i want to keep that value till the user leaves the page, even if the next value sent is empty.. But with this code, the value "1" of session("flag) remains only till...
3
5000
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" cookieless="AutoDetect" domain="" timeout="10" protection="All" /> </authentication>
0
8649
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9220
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9082
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5904
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4660
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3098
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2396
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.