Marc
Marc

Reputation: 493

Set cookie site

I have a script that i server to my clients. Now without going into details the script is looking if the user has a cookie from a certain domain (my domain) and if the user has the right cookie some data and features are given to the user.

Now for secruity reasons me and my company had to change our base url address of the place where cookie is set.

Now even though the above seems rather strange i can ensure you that my question is fairly simple:

Is it possible to change the url of a cookie and if so how?

Upvotes: 0

Views: 52

Answers (1)

Patrik
Patrik

Reputation: 2692

The browser only sends the cookies of the corresponding domain, so you have to create the cookies again, from a php script on the new domain.

Upvotes: 1

Related Questions