473,396 Members | 2,061 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,396 software developers and data experts.

Cookies set one time, I delete cookie, cookie is never set again!

I am having this problem: My PHP script will set a cookie, it's there in my
/Cookies folder. I delete the cookie (I have to for testing purposes, the
PHP script I run behaves according to this cookie existing or not) and run
the script again. Everything runs fine, but the cookie is never set again.

Does anyone know why this happens? I am using Win2000 Professional with IE
6. Cookies are being set with PHP and Javascript.

Thanx
Phil
Jul 16 '05 #1
7 4049

"Phil Powell" <so*****@erols.com> schreef in bericht
news:JhO5b.113297$xf.17876@lakeread04...

Does anyone know why this happens? I am using Win2000 Professional with IE 6. Cookies are being set with PHP and Javascript.


Try deleting the cookie with the expires argument set to a date in the past
and look what happens then.

JW

Jul 16 '05 #2
[this post was not crossposted -- feel free to forward it]

Janwillem Borleffs wrote:

"Phil Powell" <so*****@erols.com> schreef in bericht
news:JhO5b.113297$xf.17876@lakeread04...

Does anyone know why this happens? I am using Win2000 Professional with

IE
6. Cookies are being set with PHP and Javascript.


Try deleting the cookie with the expires argument set to a date in the past
and look what happens then.


Or, everytime you delete the cookie, reboot :)

--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:
Jul 16 '05 #3
I did that. Cookie was STILL being referenced by the browser even though I
deleted it and rebooted my computer.

Figure that one out!

Phil

"Pedro" <he****@hotpop.com> wrote in message
news:57********************************@4ax.com...
[this post was not crossposted -- feel free to forward it]

Janwillem Borleffs wrote:

"Phil Powell" <so*****@erols.com> schreef in bericht
news:JhO5b.113297$xf.17876@lakeread04...

Does anyone know why this happens? I am using Win2000 Professional
withIE
6. Cookies are being set with PHP and Javascript.


Try deleting the cookie with the expires argument set to a date in the pastand look what happens then.


Or, everytime you delete the cookie, reboot :)

--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:

Jul 16 '05 #4
Phil Powell wrote...
I did that. Cookie was STILL being referenced by the browser even though I
deleted it and rebooted my computer.

Figure that one out!


It worked for me (I rarely use IE). I went to google
(advanced_search), set my preferences to show 50 results, closed the
browser.

Reopened the browser, called google (advanced_search) and there it
was: the 50 results setting.
Closed my browser again.

In C:\Documents and Settings\Pedro\Cookies I had a file named
something like
pedro@google[1].txt
I deleted it, reopened the browser, went to google (advanced_search)
and the results drop down was back to 10 results!
HTH
Jul 16 '05 #5
Phil Powell wrote:
I am having this problem: My PHP script will set a cookie, it's there in my
/Cookies folder. I delete the cookie (I have to for testing purposes, the
PHP script I run behaves according to this cookie existing or not) and run
the script again. Everything runs fine, but the cookie is never set again.

Does anyone know why this happens? I am using Win2000 Professional with IE
6. Cookies are being set with PHP and Javascript.

Thanx
Phil


This isn't really a JavaScript question, and you haven't provided a lot of
details, but my first guess is that IE keeps a copy of cookies received during
a session (the time the app is running to the time it is shut down) in memory.
As a result, deleting the cookie from disk doesn't change IE's opinion that it
already has a copy of the cookie and does not need to write another to disk.

My first suggestion would be to close IE, delete the cookie, then start IE
again.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 16 '05 #6
Did just what you said, but the cookie somehow still persists, and now for
some even more weird reason, seems to persist on others machines that have
never even visited the site (much less set the cookie!)

Phil

"hexkid" <he****@hotpop.com> wrote in message
news:da*************************@posting.google.co m...
Phil Powell wrote...
I did that. Cookie was STILL being referenced by the browser even though I deleted it and rebooted my computer.

Figure that one out!


It worked for me (I rarely use IE). I went to google
(advanced_search), set my preferences to show 50 results, closed the
browser.

Reopened the browser, called google (advanced_search) and there it
was: the 50 results setting.
Closed my browser again.

In C:\Documents and Settings\Pedro\Cookies I had a file named
something like
pedro@google[1].txt
I deleted it, reopened the browser, went to google (advanced_search)
and the results drop down was back to 10 results!
HTH

Jul 16 '05 #7
Phil Powell wrote:
Did just what you said, but the cookie somehow still persists, and now for
some even more weird reason, seems to persist on others machines that have
never even visited the site (much less set the cookie!)

Phil


hmmm ... some proxy between you and the server is misbehaving (and
keeping and sending cookies)?

--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:
Jul 16 '05 #8

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

Similar topics

7
by: | last post by:
I think I may have a problem with the user of cookies in my centralized logon and registration system that I hoped could be consumed by all the sub-domains on my remote host IP. I built the...
2
by: Phil Powell | last post by:
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes, the PHP script I run behaves according to this...
2
by: Fabrice Labrousse | last post by:
Hello, after many deep searches on javascript and cookies, i still cannot have an answer for a incredible cookie problem ! here it is, i hope you'll be able to answer me : This is my function...
2
by: Ian Sedwell | last post by:
Hi guys I've come across a problem with cookies. It seems that if one attempts to save several cookies in quick succession and then read them back again, you may attempt to read a cookie that...
3
by: Joey Powell | last post by:
This message was originally posted to the aspnet.security newsgroup, but no one there has ever heard of this before. That is why I am posting this message here, so that more people will see it... ...
6
by: Pete Davis | last post by:
I've never done anything with cookies. What I'm trying to do is very straight-forward, but for some reason, it just doesn't seem to want to work. I have a helper class with some static methods. Two...
13
by: yawnmoth | last post by:
Say I wrote an ajax script to send out HTTP requests via ajax. Any cookies that I have associated with that site will be sent along with this HTTP request. Is there a way to prevent this from...
7
by: cmrchs | last post by:
Hi, In Windows Vista: where does asp.net write its cookies? I use HttpCookie objCookie = new HttpCookie("nameCookie"); in Win2000 (and later) they used to be in C:\Documents and...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.