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

Losing session values

P: n/a
We have a website that works everywhere but on a few PCs on this one site..

Asp.Net 1.1
Server = Windows 2003
Client = XP
In the web.config we use - cookieless="false"
in the browser settings they have "Always allow session cookies" set to true

When the browser connects to the website the first page sets a session
variable called "user_ref" to something and then calls another page. If on
that new page we do the following piece of code:-

Dim strRep As String = ""
If Session.IsNewSession = True Then
strRep = "Session is new."
Else
strRep = "Session is not new."
End If
If Session("user_ref") Is Nothing Then
strRep += "Cookie is lost."
Else
strRep += "Cookie is active."
End If
TextBox1.Text = strRep

We get

Session is new.Cookie is lost.

What could be causing this ?

Thanks
Adrian Parker


Nov 20 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
Hi Adrian,

Welcome to ASPNET newsgroup.
From your description, in one of your ASP.NET 1.1 web application, you
found that the sessionstate data stored will lose after post back or
redirect to new page, yes?

As for the SessionState, we have several Modes, are you using InProc
session or other out Proc session, would you provide the sessionState's
configure element? Also, to make sure that we're storing and retrieving
value from the same Session, I suggest you turn on the Page's Ouput Trace
through @page Directive like:

<%@ Page Trace="True"....%>

Then, the page will render the Cookie collection in the output. Also, the
SessionId should be one of the cookie items. You can trace this Id to see
whether remains the same between post back or page redirection. Generally
for ASP.NET it'll use a random sessionid for each request if there is no
sessionState data in use, however, after the certain client user first time
store some data into SessionState, the id should be fixed and unique until
it timeout....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| Subject: Losing session values
| Date: Thu, 17 Nov 2005 07:09:37 -0000
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358824
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| We have a website that works everywhere but on a few PCs on this one
site..
|
| Asp.Net 1.1
| Server = Windows 2003
| Client = XP
| In the web.config we use - cookieless="false"
| in the browser settings they have "Always allow session cookies" set to
true
|
| When the browser connects to the website the first page sets a session
| variable called "user_ref" to something and then calls another page. If
on
| that new page we do the following piece of code:-
|
| Dim strRep As String = ""
| If Session.IsNewSession = True Then
| strRep = "Session is new."
| Else
| strRep = "Session is not new."
| End If
| If Session("user_ref") Is Nothing Then
| strRep += "Cookie is lost."
| Else
| strRep += "Cookie is active."
| End If
| TextBox1.Text = strRep
|
| We get
|
| Session is new.Cookie is lost.
|
| What could be causing this ?
|
| Thanks
| Adrian Parker
|
|
|
|
|

Nov 20 '05 #2

P: n/a

mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="20"

I will create a test website for them to try turning tracing on. (they're
in AU so it will be awhile until they reply)
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:XF**************@TK2MSFTNGXA02.phx.gbl...
Hi Adrian,

Welcome to ASPNET newsgroup.
From your description, in one of your ASP.NET 1.1 web application, you
found that the sessionstate data stored will lose after post back or
redirect to new page, yes?

As for the SessionState, we have several Modes, are you using InProc
session or other out Proc session, would you provide the sessionState's
configure element? Also, to make sure that we're storing and retrieving
value from the same Session, I suggest you turn on the Page's Ouput Trace
through @page Directive like:

<%@ Page Trace="True"....%>

Then, the page will render the Cookie collection in the output. Also, the
SessionId should be one of the cookie items. You can trace this Id to see
whether remains the same between post back or page redirection. Generally
for ASP.NET it'll use a random sessionid for each request if there is no
sessionState data in use, however, after the certain client user first
time
store some data into SessionState, the id should be fixed and unique until
it timeout....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| Subject: Losing session values
| Date: Thu, 17 Nov 2005 07:09:37 -0000
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358824
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| We have a website that works everywhere but on a few PCs on this one
site..
|
| Asp.Net 1.1
| Server = Windows 2003
| Client = XP
| In the web.config we use - cookieless="false"
| in the browser settings they have "Always allow session cookies" set to
true
|
| When the browser connects to the website the first page sets a session
| variable called "user_ref" to something and then calls another page. If
on
| that new page we do the following piece of code:-
|
| Dim strRep As String = ""
| If Session.IsNewSession = True Then
| strRep = "Session is new."
| Else
| strRep = "Session is not new."
| End If
| If Session("user_ref") Is Nothing Then
| strRep += "Cookie is lost."
| Else
| strRep += "Cookie is active."
| End If
| TextBox1.Text = strRep
|
| We get
|
| Session is new.Cookie is lost.
|
| What could be causing this ?
|
| Thanks
| Adrian Parker
|
|
|
|
|

Nov 20 '05 #3

P: n/a
Thanks for your response Adrian,

So the problem application is on a remote product server rather than your
local dev machine? That'll make the test more difficult. Anyway, please
feel free to post here when you got any new finding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Thu, 17 Nov 2005 15:40:14 -0000
| Lines: 114
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358932
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| mode="InProc"
| stateConnectionString="tcpip=127.0.0.1:42424"
| sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| cookieless="false"
| timeout="20"
|
| I will create a test website for them to try turning tracing on.
(they're
| in AU so it will be awhile until they reply)
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > Hi Adrian,
| >
| > Welcome to ASPNET newsgroup.
| > From your description, in one of your ASP.NET 1.1 web application, you
| > found that the sessionstate data stored will lose after post back or
| > redirect to new page, yes?
| >
| > As for the SessionState, we have several Modes, are you using InProc
| > session or other out Proc session, would you provide the sessionState's
| > configure element? Also, to make sure that we're storing and retrieving
| > value from the same Session, I suggest you turn on the Page's Ouput
Trace
| > through @page Directive like:
| >
| > <%@ Page Trace="True"....%>
| >
| > Then, the page will render the Cookie collection in the output. Also,
the
| > SessionId should be one of the cookie items. You can trace this Id to
see
| > whether remains the same between post back or page redirection.
Generally
| > for ASP.NET it'll use a random sessionid for each request if there is no
| > sessionState data in use, however, after the certain client user first
| > time
| > store some data into SessionState, the id should be fixed and unique
until
| > it timeout....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | Subject: Losing session values
| > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | Lines: 37
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:358824
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | We have a website that works everywhere but on a few PCs on this one
| > site..
| > |
| > | Asp.Net 1.1
| > | Server = Windows 2003
| > | Client = XP
| > | In the web.config we use - cookieless="false"
| > | in the browser settings they have "Always allow session cookies" set
to
| > true
| > |
| > | When the browser connects to the website the first page sets a session
| > | variable called "user_ref" to something and then calls another page.
If
| > on
| > | that new page we do the following piece of code:-
| > |
| > | Dim strRep As String = ""
| > | If Session.IsNewSession = True Then
| > | strRep = "Session is new."
| > | Else
| > | strRep = "Session is not new."
| > | End If
| > | If Session("user_ref") Is Nothing Then
| > | strRep += "Cookie is lost."
| > | Else
| > | strRep += "Cookie is active."
| > | End If
| > | TextBox1.Text = strRep
| > |
| > | We get
| > |
| > | Session is new.Cookie is lost.
| > |
| > | What could be causing this ?
| > |
| > | Thanks
| > | Adrian Parker
| > |
| > |
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #4

P: n/a
Hi Steven,

I saw your response to Adrian, and I actually have the same problem: the
session does not save state, to be more specific, it reaches session_end
after postback or after redirecting to another function.

From my debugging, I found out that the session reaches the session_end only
in a specific scenario that I run.

I'm calling, in remoting, to a function in my server side to return a
dataset.

This function in, the server, creates a new thread to run the query on the
database and retrieve the data and than return the dataset.

Now, if I comment out, still in the server, the code that performs the new
thread and perform the actual query, and instead I return null, the
session_end does not reach and the session does not end!

Do you have any idea?

"Adrian Parker" <ap******@nospam.nospam> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...
Steven,

I've attached the sesstest app that I used to test the problem as well as
the trace result.

I've now found out that on site, none of the clients work, but when the
application is run from the server, it works ok. The server is running
windows 2003.

Thanks
Adrian Parker

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:P2****************@TK2MSFTNGXA02.phx.gbl...
Thanks for your response Adrian,

So the problem application is on a remote product server rather than your
local dev machine? That'll make the test more difficult. Anyway, please
feel free to post here when you got any new finding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Thu, 17 Nov 2005 15:40:14 -0000
| Lines: 114
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358932
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| mode="InProc"
| stateConnectionString="tcpip=127.0.0.1:42424"
| sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| cookieless="false"
| timeout="20"
|
| I will create a test website for them to try turning tracing on.
(they're
| in AU so it will be awhile until they reply)
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > Hi Adrian,
| >
| > Welcome to ASPNET newsgroup.
| > From your description, in one of your ASP.NET 1.1 web application,
you
| > found that the sessionstate data stored will lose after post back or
| > redirect to new page, yes?
| >
| > As for the SessionState, we have several Modes, are you using InProc
| > session or other out Proc session, would you provide the
sessionState's
| > configure element? Also, to make sure that we're storing and
retrieving
| > value from the same Session, I suggest you turn on the Page's Ouput
Trace
| > through @page Directive like:
| >
| > <%@ Page Trace="True"....%>
| >
| > Then, the page will render the Cookie collection in the output. Also,
the
| > SessionId should be one of the cookie items. You can trace this Id to
see
| > whether remains the same between post back or page redirection.
Generally
| > for ASP.NET it'll use a random sessionid for each request if there is
no
| > sessionState data in use, however, after the certain client user
first
| > time
| > store some data into SessionState, the id should be fixed and unique
until
| > it timeout....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | Subject: Losing session values
| > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | Lines: 37
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:358824
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | We have a website that works everywhere but on a few PCs on this
one
| > site..
| > |
| > | Asp.Net 1.1
| > | Server = Windows 2003
| > | Client = XP
| > | In the web.config we use - cookieless="false"
| > | in the browser settings they have "Always allow session cookies"
set
to
| > true
| > |
| > | When the browser connects to the website the first page sets a
session
| > | variable called "user_ref" to something and then calls another
page.
If
| > on
| > | that new page we do the following piece of code:-
| > |
| > | Dim strRep As String = ""
| > | If Session.IsNewSession = True Then
| > | strRep = "Session is new."
| > | Else
| > | strRep = "Session is not new."
| > | End If
| > | If Session("user_ref") Is Nothing Then
| > | strRep += "Cookie is lost."
| > | Else
| > | strRep += "Cookie is active."
| > | End If
| > | TextBox1.Text = strRep
| > |
| > | We get
| > |
| > | Session is new.Cookie is lost.
| > |
| > | What could be causing this ?
| > |
| > | Thanks
| > | Adrian Parker
| > |
| > |
| > |
| > |
| > |
| >
|
|
|


Nov 23 '05 #5

P: n/a
Steven,

We've finally found out what's happening, but not why. The problem is that
the session cookie is not being stored on the client machines
(which are all using IE6).

They have even gone into tools->options->privacy->advanced and set it to
"always allow session cookies" but it still doesn't store them.

Any ideas ?

Thanks
Adrian Parker

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:P2****************@TK2MSFTNGXA02.phx.gbl...
Thanks for your response Adrian,

So the problem application is on a remote product server rather than your
local dev machine? That'll make the test more difficult. Anyway, please
feel free to post here when you got any new finding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Thu, 17 Nov 2005 15:40:14 -0000
| Lines: 114
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358932
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| mode="InProc"
| stateConnectionString="tcpip=127.0.0.1:42424"
| sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| cookieless="false"
| timeout="20"
|
| I will create a test website for them to try turning tracing on.
(they're
| in AU so it will be awhile until they reply)
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > Hi Adrian,
| >
| > Welcome to ASPNET newsgroup.
| > From your description, in one of your ASP.NET 1.1 web application, you
| > found that the sessionstate data stored will lose after post back or
| > redirect to new page, yes?
| >
| > As for the SessionState, we have several Modes, are you using InProc
| > session or other out Proc session, would you provide the
sessionState's
| > configure element? Also, to make sure that we're storing and
retrieving
| > value from the same Session, I suggest you turn on the Page's Ouput
Trace
| > through @page Directive like:
| >
| > <%@ Page Trace="True"....%>
| >
| > Then, the page will render the Cookie collection in the output. Also,
the
| > SessionId should be one of the cookie items. You can trace this Id to
see
| > whether remains the same between post back or page redirection.
Generally
| > for ASP.NET it'll use a random sessionid for each request if there is
no
| > sessionState data in use, however, after the certain client user first
| > time
| > store some data into SessionState, the id should be fixed and unique
until
| > it timeout....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | Subject: Losing session values
| > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | Lines: 37
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:358824
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | We have a website that works everywhere but on a few PCs on this one
| > site..
| > |
| > | Asp.Net 1.1
| > | Server = Windows 2003
| > | Client = XP
| > | In the web.config we use - cookieless="false"
| > | in the browser settings they have "Always allow session cookies" set
to
| > true
| > |
| > | When the browser connects to the website the first page sets a
session
| > | variable called "user_ref" to something and then calls another page.
If
| > on
| > | that new page we do the following piece of code:-
| > |
| > | Dim strRep As String = ""
| > | If Session.IsNewSession = True Then
| > | strRep = "Session is new."
| > | Else
| > | strRep = "Session is not new."
| > | End If
| > | If Session("user_ref") Is Nothing Then
| > | strRep += "Cookie is lost."
| > | Else
| > | strRep += "Cookie is active."
| > | End If
| > | TextBox1.Text = strRep
| > |
| > | We get
| > |
| > | Session is new.Cookie is lost.
| > |
| > | What could be causing this ?
| > |
| > | Thanks
| > | Adrian Parker
| > |
| > |
| > |
| > |
| > |
| >
|
|
|

Nov 25 '05 #6

P: n/a
Just on a side-note, have they disabled the drive from writing?

Adrian Parker wrote:
Steven,

We've finally found out what's happening, but not why. The problem is that
the session cookie is not being stored on the client machines
(which are all using IE6).

They have even gone into tools->options->privacy->advanced and set it to
"always allow session cookies" but it still doesn't store them.

Any ideas ?

Thanks
Adrian Parker

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:P2****************@TK2MSFTNGXA02.phx.gbl...
Thanks for your response Adrian,

So the problem application is on a remote product server rather than your
local dev machine? That'll make the test more difficult. Anyway, please
feel free to post here when you got any new finding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Thu, 17 Nov 2005 15:40:14 -0000
| Lines: 114
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358932
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| mode="InProc"
| stateConnectionString="tcpip=127.0.0.1:42424"
| sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| cookieless="false"
| timeout="20"
|
| I will create a test website for them to try turning tracing on.
(they're
| in AU so it will be awhile until they reply)
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > Hi Adrian,
| >
| > Welcome to ASPNET newsgroup.
| > From your description, in one of your ASP.NET 1.1 web application, you
| > found that the sessionstate data stored will lose after post back or
| > redirect to new page, yes?
| >
| > As for the SessionState, we have several Modes, are you using InProc
| > session or other out Proc session, would you provide the
sessionState's
| > configure element? Also, to make sure that we're storing and
retrieving
| > value from the same Session, I suggest you turn on the Page's Ouput
Trace
| > through @page Directive like:
| >
| > <%@ Page Trace="True"....%>
| >
| > Then, the page will render the Cookie collection in the output. Also,
the
| > SessionId should be one of the cookie items. You can trace this Id to
see
| > whether remains the same between post back or page redirection.
Generally
| > for ASP.NET it'll use a random sessionid for each request if there is
no
| > sessionState data in use, however, after the certain client user first
| > time
| > store some data into SessionState, the id should be fixed and unique
until
| > it timeout....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | Subject: Losing session values
| > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | Lines: 37
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:358824
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | We have a website that works everywhere but on a few PCs on this one
| > site..
| > |
| > | Asp.Net 1.1
| > | Server = Windows 2003
| > | Client = XP
| > | In the web.config we use - cookieless="false"
| > | in the browser settings they have "Always allow session cookies" set
to
| > true
| > |
| > | When the browser connects to the website the first page sets a
session
| > | variable called "user_ref" to something and then calls another page.
If
| > on
| > | that new page we do the following piece of code:-
| > |
| > | Dim strRep As String = ""
| > | If Session.IsNewSession = True Then
| > | strRep = "Session is new."
| > | Else
| > | strRep = "Session is not new."
| > | End If
| > | If Session("user_ref") Is Nothing Then
| > | strRep += "Cookie is lost."
| > | Else
| > | strRep += "Cookie is active."
| > | End If
| > | TextBox1.Text = strRep
| > |
| > | We get
| > |
| > | Session is new.Cookie is lost.
| > |
| > | What could be causing this ?
| > |
| > | Thanks
| > | Adrian Parker
| > |
| > |
| > |
| > |
| > |
| >
|
|
|


Nov 26 '05 #7

P: n/a
Thanks for your response Adrian,

Glad that you've got progress on this. So the cause is still the browser's
cookie setting. Can you find some machine which can correctly consume your
web application? Also , on those problem machine, is your site added into
restricted/untrust sites?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
<OR**************@TK2MSFTNGP09.phx.gbl>
<P2**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Fri, 25 Nov 2005 08:49:28 -0000
| Lines: 182
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#C**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:360858
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven,
|
| We've finally found out what's happening, but not why. The problem is
that
| the session cookie is not being stored on the client machines
| (which are all using IE6).
|
| They have even gone into tools->options->privacy->advanced and set it to
| "always allow session cookies" but it still doesn't store them.
|
| Any ideas ?
|
| Thanks
| Adrian Parker
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:P2****************@TK2MSFTNGXA02.phx.gbl...
| > Thanks for your response Adrian,
| >
| > So the problem application is on a remote product server rather than
your
| > local dev machine? That'll make the test more difficult. Anyway, please
| > feel free to post here when you got any new finding.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | References: <em**************@TK2MSFTNGP12.phx.gbl>
| > <XF**************@TK2MSFTNGXA02.phx.gbl>
| > | Subject: Re: Losing session values
| > | Date: Thu, 17 Nov 2005 15:40:14 -0000
| > | Lines: 114
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:358932
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > |
| > | mode="InProc"
| > | stateConnectionString="tcpip=127.0.0.1:42424"
| > | sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| > | cookieless="false"
| > | timeout="20"
| > |
| > | I will create a test website for them to try turning tracing on.
| > (they're
| > | in AU so it will be awhile until they reply)
| > |
| > |
| > | "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| > | news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > | > Hi Adrian,
| > | >
| > | > Welcome to ASPNET newsgroup.
| > | > From your description, in one of your ASP.NET 1.1 web application,
you
| > | > found that the sessionstate data stored will lose after post back or
| > | > redirect to new page, yes?
| > | >
| > | > As for the SessionState, we have several Modes, are you using InProc
| > | > session or other out Proc session, would you provide the
| > sessionState's
| > | > configure element? Also, to make sure that we're storing and
| > retrieving
| > | > value from the same Session, I suggest you turn on the Page's Ouput
| > Trace
| > | > through @page Directive like:
| > | >
| > | > <%@ Page Trace="True"....%>
| > | >
| > | > Then, the page will render the Cookie collection in the output.
Also,
| > the
| > | > SessionId should be one of the cookie items. You can trace this Id
to
| > see
| > | > whether remains the same between post back or page redirection.
| > Generally
| > | > for ASP.NET it'll use a random sessionid for each request if there
is
| > no
| > | > sessionState data in use, however, after the certain client user
first
| > | > time
| > | > store some data into SessionState, the id should be fixed and unique
| > until
| > | > it timeout....
| > | >
| > | > Thanks,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | >
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > --------------------
| > | > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | > | Subject: Losing session values
| > | > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | > | Lines: 37
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | > | X-RFC2646: Format=Flowed; Original
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > | > 82.37.128.226
| > | > | Path:
| > TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | > microsoft.public.dotnet.framework.aspnet:358824
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > |
| > | > | We have a website that works everywhere but on a few PCs on this
one
| > | > site..
| > | > |
| > | > | Asp.Net 1.1
| > | > | Server = Windows 2003
| > | > | Client = XP
| > | > | In the web.config we use - cookieless="false"
| > | > | in the browser settings they have "Always allow session cookies"
set
| > to
| > | > true
| > | > |
| > | > | When the browser connects to the website the first page sets a
| > session
| > | > | variable called "user_ref" to something and then calls another
page.
| > If
| > | > on
| > | > | that new page we do the following piece of code:-
| > | > |
| > | > | Dim strRep As String = ""
| > | > | If Session.IsNewSession = True Then
| > | > | strRep = "Session is new."
| > | > | Else
| > | > | strRep = "Session is not new."
| > | > | End If
| > | > | If Session("user_ref") Is Nothing Then
| > | > | strRep += "Cookie is lost."
| > | > | Else
| > | > | strRep += "Cookie is active."
| > | > | End If
| > | > | TextBox1.Text = strRep
| > | > |
| > | > | We get
| > | > |
| > | > | Session is new.Cookie is lost.
| > | > |
| > | > | What could be causing this ?
| > | > |
| > | > | Thanks
| > | > | Adrian Parker
| > | > |
| > | > |
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 28 '05 #8

P: n/a
Steven,

Just finally figured out what they've done.

They installed net 2.0 framework on the server and set the application to
use that with a "it's a new version, so it should work" kind of attitude...
Of course, they didn't tell me they'd done that.

I''ve told 'em to set it to v1.1 and am awaiting (dreading) their reply.

Thanks

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:xf*************@TK2MSFTNGXA02.phx.gbl...
Thanks for your response Adrian,

Glad that you've got progress on this. So the cause is still the browser's
cookie setting. Can you find some machine which can correctly consume
your
web application? Also , on those problem machine, is your site added into
restricted/untrust sites?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
<OR**************@TK2MSFTNGP09.phx.gbl>
<P2**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Fri, 25 Nov 2005 08:49:28 -0000
| Lines: 182
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#C**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:360858
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven,
|
| We've finally found out what's happening, but not why. The problem is
that
| the session cookie is not being stored on the client machines
| (which are all using IE6).
|
| They have even gone into tools->options->privacy->advanced and set it to
| "always allow session cookies" but it still doesn't store them.
|
| Any ideas ?
|
| Thanks
| Adrian Parker
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:P2****************@TK2MSFTNGXA02.phx.gbl...
| > Thanks for your response Adrian,
| >
| > So the problem application is on a remote product server rather than
your
| > local dev machine? That'll make the test more difficult. Anyway,
please
| > feel free to post here when you got any new finding.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | References: <em**************@TK2MSFTNGP12.phx.gbl>
| > <XF**************@TK2MSFTNGXA02.phx.gbl>
| > | Subject: Re: Losing session values
| > | Date: Thu, 17 Nov 2005 15:40:14 -0000
| > | Lines: 114
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:358932
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > |
| > | mode="InProc"
| > | stateConnectionString="tcpip=127.0.0.1:42424"
| > | sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| > | cookieless="false"
| > | timeout="20"
| > |
| > | I will create a test website for them to try turning tracing on.
| > (they're
| > | in AU so it will be awhile until they reply)
| > |
| > |
| > | "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| > | news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > | > Hi Adrian,
| > | >
| > | > Welcome to ASPNET newsgroup.
| > | > From your description, in one of your ASP.NET 1.1 web application,
you
| > | > found that the sessionstate data stored will lose after post back
or
| > | > redirect to new page, yes?
| > | >
| > | > As for the SessionState, we have several Modes, are you using
InProc
| > | > session or other out Proc session, would you provide the
| > sessionState's
| > | > configure element? Also, to make sure that we're storing and
| > retrieving
| > | > value from the same Session, I suggest you turn on the Page's
Ouput
| > Trace
| > | > through @page Directive like:
| > | >
| > | > <%@ Page Trace="True"....%>
| > | >
| > | > Then, the page will render the Cookie collection in the output.
Also,
| > the
| > | > SessionId should be one of the cookie items. You can trace this Id
to
| > see
| > | > whether remains the same between post back or page redirection.
| > Generally
| > | > for ASP.NET it'll use a random sessionid for each request if there
is
| > no
| > | > sessionState data in use, however, after the certain client user
first
| > | > time
| > | > store some data into SessionState, the id should be fixed and
unique
| > until
| > | > it timeout....
| > | >
| > | > Thanks,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | >
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > --------------------
| > | > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | > | Subject: Losing session values
| > | > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | > | Lines: 37
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | > | X-RFC2646: Format=Flowed; Original
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | NNTP-Posting-Host:
82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > | > 82.37.128.226
| > | > | Path:
| > TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | > microsoft.public.dotnet.framework.aspnet:358824
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > |
| > | > | We have a website that works everywhere but on a few PCs on this
one
| > | > site..
| > | > |
| > | > | Asp.Net 1.1
| > | > | Server = Windows 2003
| > | > | Client = XP
| > | > | In the web.config we use - cookieless="false"
| > | > | in the browser settings they have "Always allow session cookies"
set
| > to
| > | > true
| > | > |
| > | > | When the browser connects to the website the first page sets a
| > session
| > | > | variable called "user_ref" to something and then calls another
page.
| > If
| > | > on
| > | > | that new page we do the following piece of code:-
| > | > |
| > | > | Dim strRep As String = ""
| > | > | If Session.IsNewSession = True Then
| > | > | strRep = "Session is new."
| > | > | Else
| > | > | strRep = "Session is not new."
| > | > | End If
| > | > | If Session("user_ref") Is Nothing Then
| > | > | strRep += "Cookie is lost."
| > | > | Else
| > | > | strRep += "Cookie is active."
| > | > | End If
| > | > | TextBox1.Text = strRep
| > | > |
| > | > | We get
| > | > |
| > | > | Session is new.Cookie is lost.
| > | > |
| > | > | What could be causing this ?
| > | > |
| > | > | Thanks
| > | > | Adrian Parker
| > | > |
| > | > |
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 28 '05 #9

P: n/a
Thanks for your further followup.

Hope you'll soon got it resolved.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Adrian Parker" <ap******@nospam.nospam>
| References: <em**************@TK2MSFTNGP12.phx.gbl>
<XF**************@TK2MSFTNGXA02.phx.gbl>
<OR**************@TK2MSFTNGP09.phx.gbl>
<P2**************@TK2MSFTNGXA02.phx.gbl>
<#C**************@tk2msftngp13.phx.gbl>
<xf*************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Losing session values
| Date: Mon, 28 Nov 2005 17:34:49 -0000
| Lines: 259
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#n**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
82.37.128.226
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:361295
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven,
|
| Just finally figured out what they've done.
|
| They installed net 2.0 framework on the server and set the application to
| use that with a "it's a new version, so it should work" kind of
attitude...
| Of course, they didn't tell me they'd done that.
|
| I''ve told 'em to set it to v1.1 and am awaiting (dreading) their reply.
|
| Thanks
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:xf*************@TK2MSFTNGXA02.phx.gbl...
| > Thanks for your response Adrian,
| >
| > Glad that you've got progress on this. So the cause is still the
browser's
| > cookie setting. Can you find some machine which can correctly consume
| > your
| > web application? Also , on those problem machine, is your site added
into
| > restricted/untrust sites?
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | References: <em**************@TK2MSFTNGP12.phx.gbl>
| > <XF**************@TK2MSFTNGXA02.phx.gbl>
| > <OR**************@TK2MSFTNGP09.phx.gbl>
| > <P2**************@TK2MSFTNGXA02.phx.gbl>
| > | Subject: Re: Losing session values
| > | Date: Fri, 25 Nov 2005 08:49:28 -0000
| > | Lines: 182
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <#C**************@tk2msftngp13.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > 82.37.128.226
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:360858
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Steven,
| > |
| > | We've finally found out what's happening, but not why. The problem
is
| > that
| > | the session cookie is not being stored on the client machines
| > | (which are all using IE6).
| > |
| > | They have even gone into tools->options->privacy->advanced and set it
to
| > | "always allow session cookies" but it still doesn't store them.
| > |
| > | Any ideas ?
| > |
| > | Thanks
| > | Adrian Parker
| > |
| > | "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| > | news:P2****************@TK2MSFTNGXA02.phx.gbl...
| > | > Thanks for your response Adrian,
| > | >
| > | > So the problem application is on a remote product server rather than
| > your
| > | > local dev machine? That'll make the test more difficult. Anyway,
| > please
| > | > feel free to post here when you got any new finding.
| > | >
| > | > Regards,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | > --------------------
| > | > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | > | References: <em**************@TK2MSFTNGP12.phx.gbl>
| > | > <XF**************@TK2MSFTNGXA02.phx.gbl>
| > | > | Subject: Re: Losing session values
| > | > | Date: Thu, 17 Nov 2005 15:40:14 -0000
| > | > | Lines: 114
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | > | X-RFC2646: Format=Flowed; Original
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | > | Message-ID: <OR**************@TK2MSFTNGP09.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | NNTP-Posting-Host: 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > | > 82.37.128.226
| > | > | Path:
| > TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| > | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | > microsoft.public.dotnet.framework.aspnet:358932
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > |
| > | > |
| > | > | mode="InProc"
| > | > | stateConnectionString="tcpip=127.0.0.1:42424"
| > | > | sqlConnectionString="data source=127.0.0.1;user id=sa;password="
| > | > | cookieless="false"
| > | > | timeout="20"
| > | > |
| > | > | I will create a test website for them to try turning tracing on.
| > | > (they're
| > | > | in AU so it will be awhile until they reply)
| > | > |
| > | > |
| > | > | "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in
message
| > | > | news:XF**************@TK2MSFTNGXA02.phx.gbl...
| > | > | > Hi Adrian,
| > | > | >
| > | > | > Welcome to ASPNET newsgroup.
| > | > | > From your description, in one of your ASP.NET 1.1 web
application,
| > you
| > | > | > found that the sessionstate data stored will lose after post
back
| > or
| > | > | > redirect to new page, yes?
| > | > | >
| > | > | > As for the SessionState, we have several Modes, are you using
| > InProc
| > | > | > session or other out Proc session, would you provide the
| > | > sessionState's
| > | > | > configure element? Also, to make sure that we're storing and
| > | > retrieving
| > | > | > value from the same Session, I suggest you turn on the Page's
| > Ouput
| > | > Trace
| > | > | > through @page Directive like:
| > | > | >
| > | > | > <%@ Page Trace="True"....%>
| > | > | >
| > | > | > Then, the page will render the Cookie collection in the output.
| > Also,
| > | > the
| > | > | > SessionId should be one of the cookie items. You can trace this
Id
| > to
| > | > see
| > | > | > whether remains the same between post back or page redirection.
| > | > Generally
| > | > | > for ASP.NET it'll use a random sessionid for each request if
there
| > is
| > | > no
| > | > | > sessionState data in use, however, after the certain client user
| > first
| > | > | > time
| > | > | > store some data into SessionState, the id should be fixed and
| > unique
| > | > until
| > | > | > it timeout....
| > | > | >
| > | > | > Thanks,
| > | > | >
| > | > | > Steven Cheng
| > | > | > Microsoft Online Support
| > | > | >
| > | > | > Get Secure! www.microsoft.com/security
| > | > | > (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | > | > rights.)
| > | > | >
| > | > | >
| > | > | >
| > | > | >
| > | > | >
| > | > | >
| > | > | > --------------------
| > | > | > | From: "Adrian Parker" <ap******@nospam.nospam>
| > | > | > | Subject: Losing session values
| > | > | > | Date: Thu, 17 Nov 2005 07:09:37 -0000
| > | > | > | Lines: 37
| > | > | > | X-Priority: 3
| > | > | > | X-MSMail-Priority: Normal
| > | > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | > | > | X-RFC2646: Format=Flowed; Original
| > | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | > | > | Message-ID: <em**************@TK2MSFTNGP12.phx.gbl>
| > | > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | > | NNTP-Posting-Host:
| > 82-37-128-226.cable.ubr01.telf.blueyonder.co.uk
| > | > | > 82.37.128.226
| > | > | > | Path:
| > | > TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | > | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | > | > microsoft.public.dotnet.framework.aspnet:358824
| > | > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > | > |
| > | > | > | We have a website that works everywhere but on a few PCs on
this
| > one
| > | > | > site..
| > | > | > |
| > | > | > | Asp.Net 1.1
| > | > | > | Server = Windows 2003
| > | > | > | Client = XP
| > | > | > | In the web.config we use - cookieless="false"
| > | > | > | in the browser settings they have "Always allow session
cookies"
| > set
| > | > to
| > | > | > true
| > | > | > |
| > | > | > | When the browser connects to the website the first page sets a
| > | > session
| > | > | > | variable called "user_ref" to something and then calls another
| > page.
| > | > If
| > | > | > on
| > | > | > | that new page we do the following piece of code:-
| > | > | > |
| > | > | > | Dim strRep As String = ""
| > | > | > | If Session.IsNewSession = True Then
| > | > | > | strRep = "Session is new."
| > | > | > | Else
| > | > | > | strRep = "Session is not new."
| > | > | > | End If
| > | > | > | If Session("user_ref") Is Nothing Then
| > | > | > | strRep += "Cookie is lost."
| > | > | > | Else
| > | > | > | strRep += "Cookie is active."
| > | > | > | End If
| > | > | > | TextBox1.Text = strRep
| > | > | > |
| > | > | > | We get
| > | > | > |
| > | > | > | Session is new.Cookie is lost.
| > | > | > |
| > | > | > | What could be causing this ?
| > | > | > |
| > | > | > | Thanks
| > | > | > | Adrian Parker
| > | > | > |
| > | > | > |
| > | > | > |
| > | > | > |
| > | > | > |
| > | > | >
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 29 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.