Home All Groups Group Topic Archive Search About


Author
7 Jul 2006 9:44 AM
Rob Meade
Hi all,

Does a users browser need any specific settings turned on in order for these
to be stored?  ie, is there something *I* could disable in my browser which
would prevent session variables being stored from my web site (ref: asp
shopping cart).

Regards

Rob

Author
7 Jul 2006 10:02 AM
Patrice
It uses a session cookie to identify the session server side. If all cookies
including session cookies (those that are stored in memory and cleaned when
IE stops opposed to those stored on disk) are disabled, the session can't be
maintained.

Try :
http://support.microsoft.com/kb/223799/en-us
(a bit ambiguous, the ASP session cookie stores just the id of the session,
session variables themselves are stored server side).

--
Patrice

"Rob Meade" <ku.shn.tsews.t***@edaem.bor> a écrit dans le message de news:
uq1yunaoGHA.4***@TK2MSFTNGP04.phx.gbl...
Show quote
> Hi all,
>
> Does a users browser need any specific settings turned on in order for
> these to be stored?  ie, is there something *I* could disable in my
> browser which would prevent session variables being stored from my web
> site (ref: asp shopping cart).
>
> Regards
>
> Rob
>
Author
7 Jul 2006 10:11 AM
Rob Meade
"Patrice" wrote ...

> It uses a session cookie to identify the session server side. If all
> cookies including session cookies (those that are stored in memory and
> cleaned when IE stops opposed to those stored on disk) are disabled, the
> session can't be maintained.

Hello Patrice,

Thank you for your reply and information.  One further question then if I
may...

As the session variables are paramount to the operation of my shopping cart
application, is there a way to test whether or not they can be used?  I'm
hoping for something a bit more clever than...

Session("SessionAvailable") = "True"

If Session("SessionAvailable") = "True" Then

    ' cool

Else

    ' not so cool

End If

etc...anything shorter, quicker, easier that can be used which would enable
me to test on each page and display a message if they are not enabled?

Regards

Rob
Author
7 Jul 2006 11:20 AM
CJM
Show quote
"Rob Meade" <ku.shn.tsews.t***@edaem.bor> wrote in message
news:e$QaC3aoGHA.196@TK2MSFTNGP05.phx.gbl...

>
> Session("SessionAvailable") = "True"
>
> If Session("SessionAvailable") = "True" Then
>
>    ' cool
>
> Else
>
>    ' not so cool
>
> End If
>

This is pretty much what you have to do...
Author
7 Jul 2006 12:24 PM
Patrice
I would read this though on another page so that there is a round trip. Here
I think the server might well store the value fine, the problem being that
the cookie won't be find on the next round trip preventing the server to
pair the request with the session store it preivously used...

--
Patrice

"CJM" <cjmnews04@newsgroup.nospam> a écrit dans le message de news:
OCsYodboGHA.***@TK2MSFTNGP05.phx.gbl...
Show quote
>
> "Rob Meade" <ku.shn.tsews.t***@edaem.bor> wrote in message
> news:e$QaC3aoGHA.196@TK2MSFTNGP05.phx.gbl...
>
>>
>> Session("SessionAvailable") = "True"
>>
>> If Session("SessionAvailable") = "True" Then
>>
>>    ' cool
>>
>> Else
>>
>>    ' not so cool
>>
>> End If
>>
>
> This is pretty much what you have to do...
>
Author
8 Jul 2006 7:55 PM
Rob Meade
"Patrice" / "CJM" wrote...

>I would read this though on another page so that there is a round trip.
>Here I think the server might well store the value fine, the problem being
>that the cookie won't be find on the next round trip preventing the server
>to pair the request with the session store it preivously used...

/

>This is pretty much what you have to do...

Thanks for your replies, I'll give it a go...wonder how many people switch
this stuff off?  first time I've written a shopping cart app so kinda
"twitching" a bit with it! :o/

Rob

AddThis Social Bookmark Button