Re: Cookie Quandary
| From: | Ashley Sheridan | Date: | Tue, 27 Oct 2009 17:56:10 +0000 |
| Subject: | Re: Cookie Quandary | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299395@lists.php.net to get a copy of this message | ||
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