By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,312 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,312 IT Pros & Developers. It's quick & easy.

session empty

P: n/a
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
Share this Question
Share on Google+
13 Replies


P: n/a
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.invalid.de> wrote in message
news:eh**************@TK2MSFTNGP14.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

P: n/a
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==null" ... 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***@DIESPAMMERSDIEtakempis.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP10.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.invalid.de> wrote in message
news:eh**************@TK2MSFTNGP14.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

P: n/a
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.invalid.de> schrieb im
Newsbeitrag news:eB**************@TK2MSFTNGP09.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==null" ... 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***@DIESPAMMERSDIEtakempis.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP10.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.invalid.de> wrote in message
news:eh**************@TK2MSFTNGP14.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

P: n/a
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.invalid.de> a écrit dans le
message de news:%2****************@TK2MSFTNGP14.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.invalid.de> schrieb im
Newsbeitrag news:eB**************@TK2MSFTNGP09.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==null" ... 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***@DIESPAMMERSDIEtakempis.com> schrieb im Newsbeitrag news:%2****************@TK2MSFTNGP10.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.invalid.de> wrote in message news:eh**************@TK2MSFTNGP14.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

P: n/a
ok... all details.... i tried some other simple code .. and the same problem

sessiontest1.aspx:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e)
{
Session.Add("testvar", "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.aspx
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
Response.Write("tv: " + Session["testvar"] + " and TS:
"+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk 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
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_Start() event is called meanwhile .... if it would be so... i
would get an email...

please help me
Nov 19 '05 #6

P: n/a
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.invalid.de> a écrit dans le
message de news:um***************@TK2MSFTNGP14.phx.gbl...
ok... all details.... i tried some other simple code .. and the same problem
sessiontest1.aspx:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" Trace="true" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e)
{
Session.Add("testvar", "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.aspx
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" Trace="true" %>
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
Response.Write("tv: " + Session["testvar"] + " and TS:
"+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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,t
ext/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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,t
ext/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk 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
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_Start() event is called meanwhile .... if it would be so... i would get an email...

please help me

Nov 19 '05 #7

P: n/a
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.aspx and after it the
sessiontest2.aspx
"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans le
message de news:um***************@TK2MSFTNGP14.phx.gbl...
ok... all details.... i tried some other simple code .. and the same

problem

sessiontest1.aspx:
<%@ Page Language="C#" ContentType="text/html"

ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e)
{
Session.Add("testvar", "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.aspx
<%@ Page Language="C#" ContentType="text/html"

ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
Response.Write("tv: " + Session["testvar"] + " and TS:
"+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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,t
ext/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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,t
ext/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk 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
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_Start() event is called meanwhile .... if it would be
so...

i
would get an email...

please help me


Nov 19 '05 #8

P: n/a
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
programmatically System.Web.ProcessModelInfo.GetHistory)... 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.invalid.de> a écrit dans le
message de news:ea**************@TK2MSFTNGP12.phx.gbl...
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.aspx and after it the
sessiontest2.aspx
"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans le
message de news:um***************@TK2MSFTNGP14.phx.gbl...
ok... all details.... i tried some other simple code .. and the same

problem

sessiontest1.aspx:
<%@ Page Language="C#" ContentType="text/html"

ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e)
{
Session.Add("testvar", "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.aspx
<%@ Page Language="C#" ContentType="text/html"

ResponseEncoding="iso-8859-1"
Trace="true" %>
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
Response.Write("tv: " + Session["testvar"] + " and TS:
"+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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,t ext/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXXX
REMOTE_HOST XXXXXXXXX
REMOTE_PORT 60224
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
Cookies Collection
Name Value Size
ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_CONTROL: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,t ext/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk 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
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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1072123260
INSTANCE_META_PATH /LM/W3SVC/1072123260
LOCAL_ADDR XXXXXXXX
PATH_INFO /intern/sessiontest2.aspx
PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
QUERY_STRING
REMOTE_ADDR XXXXXXXX
REMOTE_HOST XXXXXXXX
REMOTE_PORT 60341
REQUEST_METHOD GET
SCRIPT_NAME /intern/sessiontest2.aspx
SERVER_NAME XXXXXXXX
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /intern/sessiontest2.aspx
HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
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_Start() event is called meanwhile .... if it would be
so...

i
would get an email...

please help me



Nov 19 '05 #9

P: n/a
i'm not using frames in my test-environment ...
How du I use System.Web.ProcessModelInfo.GetHistory ?
BTW the applicationstate and the sessionstate variables are disappearing
independet of each other.

"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:eh**************@TK2MSFTNGP10.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
programmatically System.Web.ProcessModelInfo.GetHistory)... 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.invalid.de> a écrit dans le
message de news:ea**************@TK2MSFTNGP12.phx.gbl...
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.aspx and after it the
sessiontest2.aspx
"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans le
> message de news:um***************@TK2MSFTNGP14.phx.gbl...
>> ok... all details.... i tried some other simple code .. and the same
> problem
>>
>> sessiontest1.aspx:
>> <%@ Page Language="C#" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> public void Page_Load(Object sender, EventArgs e)
>> {
>> Session.Add("testvar", "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.aspx
>> <%@ Page Language="C#" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> void Page_Load(object sender, EventArgs e)
>> {
>> Response.Write("tv: " + Session["testvar"] + " and TS:
>> "+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_CONTROL: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,t > ext/plain;q=0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING:gzip,deflate
>> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
>> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYSIZE
>> CERT_SERIALNUMBER
>> CERT_SERVER_ISSUER
>> CERT_SERVER_SUBJECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFACE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEYSIZE
>> HTTPS_SERVER_ISSUER
>> HTTPS_SERVER_SUBJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_PATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXXX
>> PATH_INFO /intern/sessiontest2.aspx
>> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXXX
>> REMOTE_HOST XXXXXXXXX
>> REMOTE_PORT 60224
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.aspx
>> SERVER_NAME XXXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SECURE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.aspx
>> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING gzip,deflate
>> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
>> Cookies Collection
>> Name Value Size
>> ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_CONTROL: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,t > ext/plain;q=0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING:gzip,deflate
>> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk 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
>> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYSIZE
>> CERT_SERIALNUMBER
>> CERT_SERVER_ISSUER
>> CERT_SERVER_SUBJECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFACE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEYSIZE
>> HTTPS_SERVER_ISSUER
>> HTTPS_SERVER_SUBJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_PATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXX
>> PATH_INFO /intern/sessiontest2.aspx
>> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXX
>> REMOTE_HOST XXXXXXXX
>> REMOTE_PORT 60341
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.aspx
>> SERVER_NAME XXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SECURE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.aspx
>> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING gzip,deflate
>> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_Start() event is called meanwhile .... if it would be
>> so...
> i
>> would get an email...
>>
>> please help me
>>
>>
>
>



Nov 19 '05 #10

P: n/a
and another discovery:
if the session is null, Session.IsNewSession is true .... with the same
SessionID like before...

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
Newsbeitrag news:eO**************@TK2MSFTNGP12.phx.gbl...
i'm not using frames in my test-environment ...
How du I use System.Web.ProcessModelInfo.GetHistory ?
BTW the applicationstate and the sessionstate variables are disappearing
independet of each other.

"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:eh**************@TK2MSFTNGP10.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
programmatically System.Web.ProcessModelInfo.GetHistory)... 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.invalid.de> a écrit dans le
message de news:ea**************@TK2MSFTNGP12.phx.gbl...
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.aspx and after it the
sessiontest2.aspx
"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans
> le
> message de news:um***************@TK2MSFTNGP14.phx.gbl...
>> ok... all details.... i tried some other simple code .. and the same
> problem
>>
>> sessiontest1.aspx:
>> <%@ Page Language="C#" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> public void Page_Load(Object sender, EventArgs e)
>> {
>> Session.Add("testvar", "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.aspx
>> <%@ Page Language="C#" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> void Page_Load(object sender, EventArgs e)
>> {
>> Response.Write("tv: " + Session["testvar"] + " and TS:
>> "+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_CONTROL: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,t
> ext/plain;q=0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING:gzip,deflate
>> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
>> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYSIZE
>> CERT_SERIALNUMBER
>> CERT_SERVER_ISSUER
>> CERT_SERVER_SUBJECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFACE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEYSIZE
>> HTTPS_SERVER_ISSUER
>> HTTPS_SERVER_SUBJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_PATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXXX
>> PATH_INFO /intern/sessiontest2.aspx
>> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXXX
>> REMOTE_HOST XXXXXXXXX
>> REMOTE_PORT 60224
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.aspx
>> SERVER_NAME XXXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SECURE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.aspx
>> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING gzip,deflate
>> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
>> Cookies Collection
>> Name Value Size
>> ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_CONTROL: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,t
> ext/plain;q=0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING:gzip,deflate
>> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk

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
>> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYSIZE
>> CERT_SERIALNUMBER
>> CERT_SERVER_ISSUER
>> CERT_SERVER_SUBJECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFACE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEYSIZE
>> HTTPS_SERVER_ISSUER
>> HTTPS_SERVER_SUBJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_PATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXX
>> PATH_INFO /intern/sessiontest2.aspx
>> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXX
>> REMOTE_HOST XXXXXXXX
>> REMOTE_PORT 60341
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.aspx
>> SERVER_NAME XXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SECURE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.aspx
>> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING gzip,deflate
>> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_Start() event is called meanwhile .... if it would be
>> so...
> i
>> would get an email...
>>
>> please help me
>>
>>
>
>



Nov 19 '05 #11

P: n/a
Could somebody help me, please? What should be the web.config and
machine.config for "normal" session-management?

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
Newsbeitrag news:uE**************@tk2msftngp13.phx.gbl...
and another discovery:
if the session is null, Session.IsNewSession is true .... with the same
SessionID like before...

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
Newsbeitrag news:eO**************@TK2MSFTNGP12.phx.gbl...
i'm not using frames in my test-environment ...
How du I use System.Web.ProcessModelInfo.GetHistory ?
BTW the applicationstate and the sessionstate variables are disappearing
independet of each other.

"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:eh**************@TK2MSFTNGP10.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
programmatically System.Web.ProcessModelInfo.GetHistory)... 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.invalid.de> a écrit dans le
message de news:ea**************@TK2MSFTNGP12.phx.gbl...
it has all its order... in my "test-environment" i call the pages
sepereately. at first the sessiontest1.aspx and after it the
sessiontest2.aspx
"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans
> le
> message de news:um***************@TK2MSFTNGP14.phx.gbl...
>> ok... all details.... i tried some other simple code .. and the same
> problem
>>
>> sessiontest1.aspx:
>> <%@ Page Language="C#" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> public void Page_Load(Object sender, EventArgs e)
>> {
>> Session.Add("testvar", "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.aspx
>> <%@ Page Language="C#" ContentType="text/html"
> ResponseEncoding="iso-8859-1"
>> Trace="true" %>
>> <script runat="server">
>> void Page_Load(object sender, EventArgs e)
>> {
>> Response.Write("tv: " + Session["testvar"] + " and TS:
>> "+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_CONTROL: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,t
> ext/plain;q=0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING:gzip,deflate
>> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
>> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYSIZE
>> CERT_SERIALNUMBER
>> CERT_SERVER_ISSUER
>> CERT_SERVER_SUBJECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFACE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEYSIZE
>> HTTPS_SERVER_ISSUER
>> HTTPS_SERVER_SUBJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_PATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXXX
>> PATH_INFO /intern/sessiontest2.aspx
>> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXXX
>> REMOTE_HOST XXXXXXXXX
>> REMOTE_PORT 60224
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.aspx
>> SERVER_NAME XXXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SECURE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.aspx
>> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING gzip,deflate
>> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
>> Cookies Collection
>> Name Value Size
>> ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_CONTROL: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,t
> ext/plain;q=0.8,image/png,*/*;q=0.5
>> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING:gzip,deflate
>> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
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
>> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>> AUTH_TYPE
>> AUTH_USER
>> AUTH_PASSWORD
>> LOGON_USER
>> REMOTE_USER
>> CERT_COOKIE
>> CERT_FLAGS
>> CERT_ISSUER
>> CERT_KEYSIZE
>> CERT_SECRETKEYSIZE
>> CERT_SERIALNUMBER
>> CERT_SERVER_ISSUER
>> CERT_SERVER_SUBJECT
>> CERT_SUBJECT
>> CONTENT_LENGTH 0
>> CONTENT_TYPE
>> GATEWAY_INTERFACE CGI/1.1
>> HTTPS off
>> HTTPS_KEYSIZE
>> HTTPS_SECRETKEYSIZE
>> HTTPS_SERVER_ISSUER
>> HTTPS_SERVER_SUBJECT
>> INSTANCE_ID 1072123260
>> INSTANCE_META_PATH /LM/W3SVC/1072123260
>> LOCAL_ADDR XXXXXXXX
>> PATH_INFO /intern/sessiontest2.aspx
>> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>> QUERY_STRING
>> REMOTE_ADDR XXXXXXXX
>> REMOTE_HOST XXXXXXXX
>> REMOTE_PORT 60341
>> REQUEST_METHOD GET
>> SCRIPT_NAME /intern/sessiontest2.aspx
>> SERVER_NAME XXXXXXXX
>> SERVER_PORT 80
>> SERVER_PORT_SECURE 0
>> SERVER_PROTOCOL HTTP/1.1
>> SERVER_SOFTWARE Microsoft-IIS/6.0
>> URL /intern/sessiontest2.aspx
>> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> HTTP_ACCEPT_ENCODING gzip,deflate
>> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>> 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_Start() event is called meanwhile .... if it would be
>> so...
> i
>> would get an email...
>>
>> please help me
>>
>>
>
>



Nov 19 '05 #12

P: n/a
Session configuration :
http://msdn.microsoft.com/library/de...atesection.asp

Using GetHistory:
http://msdn.microsoft.com/library/de...storytopic.asp

Try also :
http://support.microsoft.com/default...b;en-us;324772
http://support.microsoft.com/kb/316148/EN-US/

and more generally :
http://www.google.fr/search?hl=fr&q=...chercher&meta=

For now my first step would be to check if the application restarts itself
(I now you should have a mail but I would double check this) :

Application Restarts
The number of times that an application has been restarted during the Web
server's lifetime. Application restarts are incremented with each
Application_OnEnd event. An application restart can occur because of changes
to the Web.config file, changes to assemblies stored in the application's
\bin directory, or too many changes in Web Forms pages. Unexpected increases
in this counter can mean that unforeseen problems are causing your Web
application to shut down. In such circumstances you should investigate as
soon as possible.
Note This value is reset every time the Internet Information Services
(IIS) host is restarted.

(from
http://msdn.microsoft.com/library/de...sForASPNET.asp)

Good luck.

Patrice

--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> a écrit dans le
message de news:ui*************@TK2MSFTNGP15.phx.gbl...
Could somebody help me, please? What should be the web.config and
machine.config for "normal" session-management?

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
Newsbeitrag news:uE**************@tk2msftngp13.phx.gbl...
and another discovery:
if the session is null, Session.IsNewSession is true .... with the same
SessionID like before...

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
Newsbeitrag news:eO**************@TK2MSFTNGP12.phx.gbl...
i'm not using frames in my test-environment ...
How du I use System.Web.ProcessModelInfo.GetHistory ?
BTW the applicationstate and the sessionstate variables are disappearing independet of each other.

"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:eh**************@TK2MSFTNGP10.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
programmatically System.Web.ProcessModelInfo.GetHistory)... 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.invalid.de> a écrit dans le message de news:ea**************@TK2MSFTNGP12.phx.gbl...
> it has all its order... in my "test-environment" i call the pages
> sepereately. at first the sessiontest1.aspx and after it the
> sessiontest2.aspx
>
>
> "Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
> news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans> > le
> > message de news:um***************@TK2MSFTNGP14.phx.gbl...
> >> ok... all details.... i tried some other simple code .. and the same> > problem
> >>
> >> sessiontest1.aspx:
> >> <%@ Page Language="C#" ContentType="text/html"
> > ResponseEncoding="iso-8859-1"
> >> Trace="true" %>
> >> <script runat="server">
> >> public void Page_Load(Object sender, EventArgs e)
> >> {
> >> Session.Add("testvar", "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.aspx
> >> <%@ Page Language="C#" ContentType="text/html"
> > ResponseEncoding="iso-8859-1"
> >> Trace="true" %>
> >> <script runat="server">
> >> void Page_Load(object sender, EventArgs e)
> >> {
> >> Response.Write("tv: " + Session["testvar"] + " and TS:
> >> "+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
> >> 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_CONTROL: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,t> > ext/plain;q=0.8,image/png,*/*;q=0.5
> >> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >> HTTP_ACCEPT_ENCODING:gzip,deflate
> >> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> >> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
> >> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
> >> AUTH_TYPE
> >> AUTH_USER
> >> AUTH_PASSWORD
> >> LOGON_USER
> >> REMOTE_USER
> >> CERT_COOKIE
> >> CERT_FLAGS
> >> CERT_ISSUER
> >> CERT_KEYSIZE
> >> CERT_SECRETKEYSIZE
> >> CERT_SERIALNUMBER
> >> CERT_SERVER_ISSUER
> >> CERT_SERVER_SUBJECT
> >> CERT_SUBJECT
> >> CONTENT_LENGTH 0
> >> CONTENT_TYPE
> >> GATEWAY_INTERFACE CGI/1.1
> >> HTTPS off
> >> HTTPS_KEYSIZE
> >> HTTPS_SECRETKEYSIZE
> >> HTTPS_SERVER_ISSUER
> >> HTTPS_SERVER_SUBJECT
> >> INSTANCE_ID 1072123260
> >> INSTANCE_META_PATH /LM/W3SVC/1072123260
> >> LOCAL_ADDR XXXXXXXXX
> >> PATH_INFO /intern/sessiontest2.aspx
> >> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
> >> QUERY_STRING
> >> REMOTE_ADDR XXXXXXXXX
> >> REMOTE_HOST XXXXXXXXX
> >> REMOTE_PORT 60224
> >> REQUEST_METHOD GET
> >> SCRIPT_NAME /intern/sessiontest2.aspx
> >> SERVER_NAME XXXXXXXXX
> >> SERVER_PORT 80
> >> SERVER_PORT_SECURE 0
> >> SERVER_PROTOCOL HTTP/1.1
> >> SERVER_SOFTWARE Microsoft-IIS/6.0
> >> URL /intern/sessiontest2.aspx
> >> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >> HTTP_ACCEPT_ENCODING gzip,deflate
> >> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> >> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
> >> 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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
> >> Cookies Collection
> >> Name Value Size
> >> ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
> >> 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_CONTROL: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,t> > ext/plain;q=0.8,image/png,*/*;q=0.5
> >> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >> HTTP_ACCEPT_ENCODING:gzip,deflate
> >> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> >> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
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
> >> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
> >> AUTH_TYPE
> >> AUTH_USER
> >> AUTH_PASSWORD
> >> LOGON_USER
> >> REMOTE_USER
> >> CERT_COOKIE
> >> CERT_FLAGS
> >> CERT_ISSUER
> >> CERT_KEYSIZE
> >> CERT_SECRETKEYSIZE
> >> CERT_SERIALNUMBER
> >> CERT_SERVER_ISSUER
> >> CERT_SERVER_SUBJECT
> >> CERT_SUBJECT
> >> CONTENT_LENGTH 0
> >> CONTENT_TYPE
> >> GATEWAY_INTERFACE CGI/1.1
> >> HTTPS off
> >> HTTPS_KEYSIZE
> >> HTTPS_SECRETKEYSIZE
> >> HTTPS_SERVER_ISSUER
> >> HTTPS_SERVER_SUBJECT
> >> INSTANCE_ID 1072123260
> >> INSTANCE_META_PATH /LM/W3SVC/1072123260
> >> LOCAL_ADDR XXXXXXXX
> >> PATH_INFO /intern/sessiontest2.aspx
> >> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
> >> QUERY_STRING
> >> REMOTE_ADDR XXXXXXXX
> >> REMOTE_HOST XXXXXXXX
> >> REMOTE_PORT 60341
> >> REQUEST_METHOD GET
> >> SCRIPT_NAME /intern/sessiontest2.aspx
> >> SERVER_NAME XXXXXXXX
> >> SERVER_PORT 80
> >> SERVER_PORT_SECURE 0
> >> SERVER_PROTOCOL HTTP/1.1
> >> SERVER_SOFTWARE Microsoft-IIS/6.0
> >> URL /intern/sessiontest2.aspx
> >> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >> HTTP_ACCEPT_ENCODING gzip,deflate
> >> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> >> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
> >> 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_Start() event is called meanwhile .... if it would be> >> so...
> > i
> >> would get an email...
> >>
> >> please help me
> >>
> >>
> >
> >
>
>



Nov 19 '05 #13

P: n/a
THANK YOU VERY VERY MUCH !!!

I changed the session-store mode from InProc to StateServer ... now the
problems are gone. .. I can't understandy why it could be, that there were 2
versions of the session-vars ... but the problem is solved...
thank you for your big help.

"Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
news:eu*************@TK2MSFTNGP12.phx.gbl...
Session configuration :
http://msdn.microsoft.com/library/de...atesection.asp

Using GetHistory:
http://msdn.microsoft.com/library/de...storytopic.asp

Try also :
http://support.microsoft.com/default...b;en-us;324772
http://support.microsoft.com/kb/316148/EN-US/

and more generally :
http://www.google.fr/search?hl=fr&q=...chercher&meta=

For now my first step would be to check if the application restarts itself
(I now you should have a mail but I would double check this) :

Application Restarts
The number of times that an application has been restarted during the Web
server's lifetime. Application restarts are incremented with each
Application_OnEnd event. An application restart can occur because of
changes
to the Web.config file, changes to assemblies stored in the application's
\bin directory, or too many changes in Web Forms pages. Unexpected
increases
in this counter can mean that unforeseen problems are causing your Web
application to shut down. In such circumstances you should investigate as
soon as possible.
Note This value is reset every time the Internet Information Services
(IIS) host is restarted.

(from
http://msdn.microsoft.com/library/de...sForASPNET.asp)

Good luck.

Patrice

--

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> a écrit dans le
message de news:ui*************@TK2MSFTNGP15.phx.gbl...
Could somebody help me, please? What should be the web.config and
machine.config for "normal" session-management?

"Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
Newsbeitrag news:uE**************@tk2msftngp13.phx.gbl...
> and another discovery:
> if the session is null, Session.IsNewSession is true .... with the same
> SessionID like before...
>
> "Alexander Widera" <aw**@hrz.tu-chemnitz.de.invalid.de> schrieb im
> Newsbeitrag news:eO**************@TK2MSFTNGP12.phx.gbl...
>> i'm not using frames in my test-environment ...
>> How du I use System.Web.ProcessModelInfo.GetHistory ?
>> BTW the applicationstate and the sessionstate variables are disappearing >> independet of each other.
>>
>>
>>
>> "Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
>> news:eh**************@TK2MSFTNGP10.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
>>> programmatically System.Web.ProcessModelInfo.GetHistory)... 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.invalid.de> a écrit dans le >>> message de news:ea**************@TK2MSFTNGP12.phx.gbl...
>>>> it has all its order... in my "test-environment" i call the pages
>>>> sepereately. at first the sessiontest1.aspx and after it the
>>>> sessiontest2.aspx
>>>>
>>>>
>>>> "Patrice" <no****@nowhere.com> schrieb im Newsbeitrag
>>>> news:Oj*************@TK2MSFTNGP12.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.invalid.de> a écrit dans >>>> > le
>>>> > message de news:um***************@TK2MSFTNGP14.phx.gbl...
>>>> >> ok... all details.... i tried some other simple code .. and the same >>>> > problem
>>>> >>
>>>> >> sessiontest1.aspx:
>>>> >> <%@ Page Language="C#" ContentType="text/html"
>>>> > ResponseEncoding="iso-8859-1"
>>>> >> Trace="true" %>
>>>> >> <script runat="server">
>>>> >> public void Page_Load(Object sender, EventArgs e)
>>>> >> {
>>>> >> Session.Add("testvar", "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.aspx
>>>> >> <%@ Page Language="C#" ContentType="text/html"
>>>> > ResponseEncoding="iso-8859-1"
>>>> >> Trace="true" %>
>>>> >> <script runat="server">
>>>> >> void Page_Load(object sender, EventArgs e)
>>>> >> {
>>>> >> Response.Write("tv: " + Session["testvar"] + " and TS:
>>>> >> "+Application["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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_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_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>>>> >> 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_CONTROL: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,t >>>> > ext/plain;q=0.8,image/png,*/*;q=0.5
>>>> >> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>>> >> HTTP_ACCEPT_ENCODING:gzip,deflate
>>>> >> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>>>> >> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
>>>> >> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>>>> >> AUTH_TYPE
>>>> >> AUTH_USER
>>>> >> AUTH_PASSWORD
>>>> >> LOGON_USER
>>>> >> REMOTE_USER
>>>> >> CERT_COOKIE
>>>> >> CERT_FLAGS
>>>> >> CERT_ISSUER
>>>> >> CERT_KEYSIZE
>>>> >> CERT_SECRETKEYSIZE
>>>> >> CERT_SERIALNUMBER
>>>> >> CERT_SERVER_ISSUER
>>>> >> CERT_SERVER_SUBJECT
>>>> >> CERT_SUBJECT
>>>> >> CONTENT_LENGTH 0
>>>> >> CONTENT_TYPE
>>>> >> GATEWAY_INTERFACE CGI/1.1
>>>> >> HTTPS off
>>>> >> HTTPS_KEYSIZE
>>>> >> HTTPS_SECRETKEYSIZE
>>>> >> HTTPS_SERVER_ISSUER
>>>> >> HTTPS_SERVER_SUBJECT
>>>> >> INSTANCE_ID 1072123260
>>>> >> INSTANCE_META_PATH /LM/W3SVC/1072123260
>>>> >> LOCAL_ADDR XXXXXXXXX
>>>> >> PATH_INFO /intern/sessiontest2.aspx
>>>> >> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>>>> >> QUERY_STRING
>>>> >> REMOTE_ADDR XXXXXXXXX
>>>> >> REMOTE_HOST XXXXXXXXX
>>>> >> REMOTE_PORT 60224
>>>> >> REQUEST_METHOD GET
>>>> >> SCRIPT_NAME /intern/sessiontest2.aspx
>>>> >> SERVER_NAME XXXXXXXXX
>>>> >> SERVER_PORT 80
>>>> >> SERVER_PORT_SECURE 0
>>>> >> SERVER_PROTOCOL HTTP/1.1
>>>> >> SERVER_SOFTWARE Microsoft-IIS/6.0
>>>> >> URL /intern/sessiontest2.aspx
>>>> >> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>>> >> HTTP_ACCEPT_ENCODING gzip,deflate
>>>> >> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>>>> >> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>>>> >> 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: yiiqjj3qiqsguu55g4b1f4bk 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.sessiontest2_aspx 0 0
>>>> >> Cookies Collection
>>>> >> Name Value Size
>>>> >> ASP.NET_SessionId yiiqjj3qiqsguu55g4b1f4bk 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>>>> >> 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_CONTROL: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,t >>>> > ext/plain;q=0.8,image/png,*/*;q=0.5
>>>> >> HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>>> >> HTTP_ACCEPT_ENCODING:gzip,deflate
>>>> >> HTTP_ACCEPT_LANGUAGE:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>>>> >> HTTP_COOKIE:ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1 f4bk
>>> 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
>>>> >> 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_SessionId=yiiqjj3qiqsguu55g4b1f4bk 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_PATH E:\Webpub\page123\
>>>> >> AUTH_TYPE
>>>> >> AUTH_USER
>>>> >> AUTH_PASSWORD
>>>> >> LOGON_USER
>>>> >> REMOTE_USER
>>>> >> CERT_COOKIE
>>>> >> CERT_FLAGS
>>>> >> CERT_ISSUER
>>>> >> CERT_KEYSIZE
>>>> >> CERT_SECRETKEYSIZE
>>>> >> CERT_SERIALNUMBER
>>>> >> CERT_SERVER_ISSUER
>>>> >> CERT_SERVER_SUBJECT
>>>> >> CERT_SUBJECT
>>>> >> CONTENT_LENGTH 0
>>>> >> CONTENT_TYPE
>>>> >> GATEWAY_INTERFACE CGI/1.1
>>>> >> HTTPS off
>>>> >> HTTPS_KEYSIZE
>>>> >> HTTPS_SECRETKEYSIZE
>>>> >> HTTPS_SERVER_ISSUER
>>>> >> HTTPS_SERVER_SUBJECT
>>>> >> INSTANCE_ID 1072123260
>>>> >> INSTANCE_META_PATH /LM/W3SVC/1072123260
>>>> >> LOCAL_ADDR XXXXXXXX
>>>> >> PATH_INFO /intern/sessiontest2.aspx
>>>> >> PATH_TRANSLATED E:\Webpub\page123\intern\sessiontest2.aspx
>>>> >> QUERY_STRING
>>>> >> REMOTE_ADDR XXXXXXXX
>>>> >> REMOTE_HOST XXXXXXXX
>>>> >> REMOTE_PORT 60341
>>>> >> REQUEST_METHOD GET
>>>> >> SCRIPT_NAME /intern/sessiontest2.aspx
>>>> >> SERVER_NAME XXXXXXXX
>>>> >> SERVER_PORT 80
>>>> >> SERVER_PORT_SECURE 0
>>>> >> SERVER_PROTOCOL HTTP/1.1
>>>> >> SERVER_SOFTWARE Microsoft-IIS/6.0
>>>> >> URL /intern/sessiontest2.aspx
>>>> >> HTTP_CACHE_CONTROL 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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>>> >> HTTP_ACCEPT_ENCODING gzip,deflate
>>>> >> HTTP_ACCEPT_LANGUAGE de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
>>>> >> HTTP_COOKIE ASP.NET_SessionId=yiiqjj3qiqsguu55g4b1f4bk
>>>> >> 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_Start() event is called meanwhile .... if it would be >>>> >> so...
>>>> > i
>>>> >> would get an email...
>>>> >>
>>>> >> please help me
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.