Changing cookie path....

0 views
Skip to first unread message

nickW+

unread,
Aug 24, 2010, 2:39:46 AM8/24/10
to Professional PHP Developers
Hello All,

So this might be a dumb question but i'm curious as to what the side
effect will be.

I noticed that I was creating the cookies as "sitename.com" where all
the major site cookies on my computer are ".theirsite.com" so I
changed mine to ".sitename.com".

This is currently only in the staging environment but i'm curious if
this will cause any problems with user logins etc? Would it be wise /
necessary to create a function that "converts" the cookie to the new
".sitename.com" cookie path?

Basically expire all existing cookies with the old path and move them
to the new path?

Robert Gonzalez

unread,
Aug 24, 2010, 12:37:44 PM8/24/10
to professi...@googlegroups.com
No, you don't need to convert. They'll expire on their own after due time.

--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.

For information or project assistance please visit :
http://www.360psg.com

You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP

nickW+

unread,
Aug 24, 2010, 2:36:20 PM8/24/10
to Professional PHP Developers
What if their "login" information is saved there? Like a login token
and user? Will PHP still pickup the old path for the cookie?

On Aug 24, 10:37 am, Robert Gonzalez
<robert.anthony.gonza...@gmail.com> wrote:
> No, you don't need to convert. They'll expire on their own after due time.
>

Robert Gonzalez

unread,
Aug 24, 2010, 2:37:58 PM8/24/10
to professi...@googlegroups.com
Have you tried it in your development environment yet, to see for yourself what will happen? ;)

Joe Williams

unread,
Aug 24, 2010, 4:18:08 PM8/24/10
to professi...@googlegroups.com
Sometimes I wish email had a "promote" or upvote feature :)

-------
Twitter: @mrstatic
Website: https://www.speakservers.com

Sent on the Sprint® Now Network from my BlackBerry®


From: Robert Gonzalez <robert.anth...@gmail.com>
Date: Tue, 24 Aug 2010 11:37:58 -0700
Subject: Re: [Pro. PHP Dev.] Re: Changing cookie path....

nickW+

unread,
Aug 24, 2010, 6:01:21 PM8/24/10
to Professional PHP Developers
Cool, I guess I'll have to try it, just figured someone here would
have had experience with this :)

On Aug 24, 12:37 pm, Robert Gonzalez
<robert.anthony.gonza...@gmail.com> wrote:
> Have you tried it in your development environment yet, to see for yourself
> what will happen? ;)
>
Reply all
Reply to author
Forward
0 new messages