473,473 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Session cookies, deep mystery. Sherlock Holmes, please Help!

Hi All,

I have a lot of problems with the web site www.ggsurf.com.au I host on
www.gnxonline.com and I want to find out if it is my own problem or theirs.
I try to use session cookies and it doesn't work fine. Eventually I created
some test scripts, which can be found in here:

www.ggsurf.com.au/info.asp

There is a link to Set the Session("TransactionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session cookie

The Session("TransactionID") shows as NULL. If you click on the refresh
button in Internet Explorer or click on the link called info, you will see
that the Session("TransactionID") alternates between value 25 and NULL. How
can this be possible? Is it a problem in my scripts or the web server does
something weird?

I am unable to reproduce the problem everytime I try. But if I play for
maybe two minutes with the scripts (clicking on the links to set cookie,
clear cookie, default), eventually I click on Set Session and the value of
the cookie shows as NULL. In that moment, clicking on info will show
alternate values for the Session Cookies.
For your convenience, I created a link to the top logo in default.asp which
brings you back to info.asp

Any idea about this problem would be appreciated. I had many discussions
with the administrators from www.gnxonline.com and they say it is an error
on my side, but they've been unable to provide me any hints or some sample
scripts (I tried using Session.Timeout without solving the problem). And I
don't think it is my problem, as the same script work on three other web
servers.

The only relevant commands I use in the script are:

Session("TransactionID") = 25

and

response.write "Session(""TransactionID"") = " & Session("TransactionID") &
"<br>"
Regards,
Nicolae

Jul 22 '05 #1
3 1757
The behavior you describe does not happen for me in IE 6.0.2900, Netscape
8.0 Beta (0.9.6) or Firefox 1.0.2. Do you have any anti-cookie software
running, or any sort of Zone Alarm type of nonsense? Do you have your
browsers set to allow cookies?

Ray at home

"Nicolae Fieraru" <no****@please.com> wrote in message
news:42********@duster.adelaide.on.net...
Hi All,

I have a lot of problems with the web site www.ggsurf.com.au I host on
www.gnxonline.com and I want to find out if it is my own problem or
theirs.
I try to use session cookies and it doesn't work fine. Eventually I
created some test scripts, which can be found in here:

www.ggsurf.com.au/info.asp

There is a link to Set the Session("TransactionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session cookie

The Session("TransactionID") shows as NULL. If you click on the refresh
button in Internet Explorer or click on the link called info, you will see
that the Session("TransactionID") alternates between value 25 and NULL.

Jul 22 '05 #2
Hi Ray,

I have similar scripts on other servers on the internet and they work fine
for my computer, therefore I consider it isn't a problem of my computer
settings. It is just this particular web server which causes me problems. I
don't have any anticookie software on the computer.
Thanks for your time. I suppose it didn't happen for you, and this is why it
is even more difficult to track.

Regards
Nicolae

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OD****************@TK2MSFTNGP12.phx.gbl...
The behavior you describe does not happen for me in IE 6.0.2900, Netscape
8.0 Beta (0.9.6) or Firefox 1.0.2. Do you have any anti-cookie software
running, or any sort of Zone Alarm type of nonsense? Do you have your
browsers set to allow cookies?

Ray at home

"Nicolae Fieraru" <no****@please.com> wrote in message
news:42********@duster.adelaide.on.net...
Hi All,

I have a lot of problems with the web site www.ggsurf.com.au I host on
www.gnxonline.com and I want to find out if it is my own problem or
theirs.
I try to use session cookies and it doesn't work fine. Eventually I
created some test scripts, which can be found in here:

www.ggsurf.com.au/info.asp

There is a link to Set the Session("TransactionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session
cookie

The Session("TransactionID") shows as NULL. If you click on the refresh
button in Internet Explorer or click on the link called info, you will
see that the Session("TransactionID") alternates between value 25 and
NULL.


Jul 22 '05 #3
I too have had strange happenings with Session cookies!

Unfortunately I don't think I've solved them!

One thing you could try is adding the line

Response.AddHeader "P3P", "CP=""CAO PSA OUR"""

to the start of your script, this should tell the latest version of IE6 to
accept session cookies. The latest version of IE now supports the P3P
privacy policies, I think this is where problems are happening.

Regards

Adam
"Nicolae Fieraru" <no****@please.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Ray,

I have similar scripts on other servers on the internet and they work fine
for my computer, therefore I consider it isn't a problem of my computer
settings. It is just this particular web server which causes me problems.
I don't have any anticookie software on the computer.
Thanks for your time. I suppose it didn't happen for you, and this is why
it is even more difficult to track.

Regards
Nicolae

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OD****************@TK2MSFTNGP12.phx.gbl...
The behavior you describe does not happen for me in IE 6.0.2900, Netscape
8.0 Beta (0.9.6) or Firefox 1.0.2. Do you have any anti-cookie software
running, or any sort of Zone Alarm type of nonsense? Do you have your
browsers set to allow cookies?

Ray at home

"Nicolae Fieraru" <no****@please.com> wrote in message
news:42********@duster.adelaide.on.net...
Hi All,

I have a lot of problems with the web site www.ggsurf.com.au I host on
www.gnxonline.com and I want to find out if it is my own problem or
theirs.
I try to use session cookies and it doesn't work fine. Eventually I
created some test scripts, which can be found in here:

www.ggsurf.com.au/info.asp

There is a link to Set the Session("TransactionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session
cookie

The Session("TransactionID") shows as NULL. If you click on the refresh
button in Internet Explorer or click on the link called info, you will
see that the Session("TransactionID") alternates between value 25 and
NULL.



Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
4
by: Vsevolod Buzinov | last post by:
Greeting everyone. Today my mom said that if I hadn't solve out my session troubles, she'd lock me down in a fridge. Don't let me die in spooky darkness! Please have your gentle look at that: ...
14
by: Darrin J Olson | last post by:
I am trying to end a session for a site without having to completely close the browser to end it. When I access the site and log in it works fine. If I log out and in with a different account...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
3
by: Richard P | last post by:
I am experiencing some browser weirdness. My app uses session state to hide values I prefer to keep out of the querystring. I am testing to see what happens when cookies are fully disabled in IE...
8
by: Steve Letford | last post by:
Hi, I've just read the ms KB article on how sessions can die because of the underscore in the machine name and don't think that it applies to me. I've tried using the IP address of the server and...
1
by: Steve Remer | last post by:
My application (relevant code snippets below) originally used Session variables in order to maintain state from page to page. After being unable to solve the mystery of why those variables were...
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
0
by: Calvin KD | last post by:
Hi everyone, I need help urgently. I have a C#.Net app which uses cookies for state management (since we've gone away from Session for fear of webfarm and we haven't found the need for SQL Server...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.