473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Losing session values

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
9 2527
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

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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could...
1
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
2
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
0
by: Reza Solouki | last post by:
Hi, I have a case where an item could have n subitems, so while doing the alterations to the subitems, I need to keep the arraylist in session. It was working fine in the development machine,...
6
by: Sukh | last post by:
Hi, I am using ASP.Net with C#. My application is using a control and when control object is created my application set all the values to that control. This also contain connection string...
0
by: jason.friesen | last post by:
Hi Folks I have a custom CMS built in classic ASP that is losing session variables. To wit, I can create a situation where my 'show all the set SVs' test page shows a different set of SVs on each...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
18
by: John | last post by:
Something strange has just started to happen as I have been developing a db application on a site. Suddenly a session variable has stopped working as I pass it from 1 page to another (I am sure it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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

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