Portal Home > Knowledgebase > Articles Database > setcookie() troubles on different subdomains, need help
setcookie() troubles on different subdomains, need help
Posted by argenty, 06-01-2009, 04:47 AM |
Hello,
how can i set a cookie on different subdomains ?
|
Posted by Kohrar, 06-01-2009, 05:14 AM |
I would do something like this:
change the expire time name and value of the cookies accordingly.
|
Posted by JoyceBabu, 06-01-2009, 06:05 AM |
To set separate cookie for separate subdomains use Kohrar's code. If you want same cookie accessible from multiple subdomains use
|
Posted by argenty, 06-01-2009, 10:58 AM |
I have about 7 subdomains, well i'm going to try
|
Add to Favourites Print this Article
Also Read