472,986 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 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 2500
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.