473,573 Members | 2,822 Online
Bytes | Software Development & Data Engineering Community
+ 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("Transa ctionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session cookie

The Session("Transa ctionID") 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("Transa ctionID") 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("Transa ctionID") = 25

and

response.write "Session(""Tran sactionID"") = " & Session("Transa ctionID") &
"<br>"
Regards,
Nicolae

Jul 22 '05 #1
3 1763
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.adelaid e.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("Transa ctionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session cookie

The Session("Transa ctionID") 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("Transa ctionID") 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******** ********@TK2MSF TNGP12.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.adelaid e.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("Transa ctionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session
cookie

The Session("Transa ctionID") 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("Transa ctionID") 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.AddHea der "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******** ********@TK2MSF TNGP12.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******** ********@TK2MSF TNGP12.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.adelaid e.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("Transa ctionID") = 25 and the page
set.asp redirects the browser to info.asp after setting the session
cookie

The Session("Transa ctionID") 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("Transa ctionID") 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
7773
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: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION =...
4
2119
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: ==cut== class User {}; $user = NULL; function fireup_session ($login, $pass)
14
4046
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 without closing the browser, I get the first session's information. Also, if a open another browser and log in with a different account I get the...
2
3328
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 the user. I want that cookie should get deleted when user closes the browser without signing out. I think it is done in global.asa file . But i...
3
1840
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 6 and NS 7. NS behaves as expected: it has no recall of previous requests. With IE however my app works as normal: I can still store and retrieve...
8
1584
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 have tested it locally using localhost and my sessions still die. It seems to happen on one particular page. It has some heavy db activity but...
1
3167
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 intermittently inaccessible, (all Session variables gone, not using InProc Session state mode), I moved to a cookies-based solution. Now I have cookie...
8
1737
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 viewstate, to session, and on the details page back to viewstate. Or does that sound like too much work? thanks, ari
0
1057
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 to be used for this purpose yet). Recently we've expanded the app and a few more screens were added and quite a few more cookies were required to...
0
7781
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7699
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8027
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7788
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6421
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5594
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3733
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3733
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2216
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 we have to send another system

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.