Cookie Quandary

Cookie Quandary

am 27.10.2009 18:35:47 von Brian Dunning

I wrote some cookies for a whole bunch of site admins, but failed to
set the path, so all the cookies are set to '/admin', which is not
going to work for everything they need to do. They are also too long,
set for 6 months.

I need to correct both issues, so I changed it to write cookies to '/'
for 72 hours. I've checked my Safari, and I see that I have both
cookies set: A long one for '/admin' and a short one for '/'. I'm
worried that once the admins' short cookies run out, their browsers
will pick up the longer lasting value for the '/admin' version of the
cookie.

I want to kill everyones' '/admin' cookies, but I'm worried that some
browsers might erase both cookies if I do this. Does anyone know if I
can safely kill the '/admin' cookie without risking deletion of the
'/' cookie?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Cookie Quandary

am 27.10.2009 18:56:10 von Ashley Sheridan

--=-DaHR2KArpJSEmPCoBdCk
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2009-10-27 at 10:35 -0700, Brian Dunning wrote:

> I wrote some cookies for a whole bunch of site admins, but failed to
> set the path, so all the cookies are set to '/admin', which is not
> going to work for everything they need to do. They are also too long,
> set for 6 months.
>
> I need to correct both issues, so I changed it to write cookies to '/'
> for 72 hours. I've checked my Safari, and I see that I have both
> cookies set: A long one for '/admin' and a short one for '/'. I'm
> worried that once the admins' short cookies run out, their browsers
> will pick up the longer lasting value for the '/admin' version of the
> cookie.
>
> I want to kill everyones' '/admin' cookies, but I'm worried that some
> browsers might erase both cookies if I do this. Does anyone know if I
> can safely kill the '/admin' cookie without risking deletion of the
> '/' cookie?
>
>


Cookies are client-side. Do you mean session files?

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-DaHR2KArpJSEmPCoBdCk--

Re: Cookie Quandary

am 27.10.2009 19:34:03 von Brian Dunning

No, I'm talking about cookies, thus the references to pathnames and
expirations.

On Oct 27, 2009, at 10:56 AM, Ashley Sheridan wrote:

> Cookies are client-side. Do you mean session files?
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Cookie Quandary

am 27.10.2009 19:36:28 von Ashley Sheridan

--=-OZYprzUhg/9m1T6dqouN
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2009-10-27 at 11:34 -0700, Brian Dunning wrote:

> No, I'm talking about cookies, thus the references to pathnames and
> expirations.
>
> On Oct 27, 2009, at 10:56 AM, Ashley Sheridan wrote:
>
> > Cookies are client-side. Do you mean session files?
> >
>
>


How are you writing the cookies to a users local computer?

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-OZYprzUhg/9m1T6dqouN--

Re: Cookie Quandary

am 27.10.2009 19:58:40 von Skylinux

Brian Dunning wrote:
> I want to kill everyones' '/admin' cookies, but I'm worried that some
> browsers might erase both cookies if I do this. Does anyone know if I
> can safely kill the '/admin' cookie without risking deletion of the '/'
> cookie?

How about you store the data, expire both cookies then send the valid
cookie back to the browser?

--
John
All truth is simple... is that not doubly a lie?
[Friedrich Nietzsche]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php