Shared Cookie
-
When user visit www.site1.com i need to set cookie with time of visit. Then when user visit www.site2.com or www.site3.com i need to read cookie from www.site1.com so i know visitor time. Is there way to set one cookie for multiple websites or multiple cookies for diferent sites?
FeRtoll Software.net ------------ E-Mail me WebPage
-
When user visit www.site1.com i need to set cookie with time of visit. Then when user visit www.site2.com or www.site3.com i need to read cookie from www.site1.com so i know visitor time. Is there way to set one cookie for multiple websites or multiple cookies for diferent sites?
FeRtoll Software.net ------------ E-Mail me WebPage
I found this[^] on stackoverflow.com via Google, maybe it will help you?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
-
When user visit www.site1.com i need to set cookie with time of visit. Then when user visit www.site2.com or www.site3.com i need to read cookie from www.site1.com so i know visitor time. Is there way to set one cookie for multiple websites or multiple cookies for diferent sites?
FeRtoll Software.net ------------ E-Mail me WebPage
You should find what you want by making use of a database session manager instead of the default one in php. You can google this and find a number of articles on how to implement this. Besides sharing the session data between different domains you can also use this for load balancing multiple servers.
-
You should find what you want by making use of a database session manager instead of the default one in php. You can google this and find a number of articles on how to implement this. Besides sharing the session data between different domains you can also use this for load balancing multiple servers.
And how would you identify a session without setting it in a cookie that multiple sites can access. (Which cannot be done btw.) You can set cookies for multiple of domains, or even easier call an image (PHP file) of another website that sets the cookie for you. (EG: call example2.com/images/cookie.php?mydta=1 from example.com)
-
When user visit www.site1.com i need to set cookie with time of visit. Then when user visit www.site2.com or www.site3.com i need to read cookie from www.site1.com so i know visitor time. Is there way to set one cookie for multiple websites or multiple cookies for diferent sites?
FeRtoll Software.net ------------ E-Mail me WebPage
-
nevermind i found the way to do this! ;P
FeRtoll Software.net ------------ E-Mail me WebPage
and it would be good for you to post it here, so others can benefit. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
and it would be good for you to post it here, so others can benefit. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
i will post here once i get my project full tested and finished!
FeRtoll Software.net ------------ E-Mail me WebPage
:thumbsup:
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
And how would you identify a session without setting it in a cookie that multiple sites can access. (Which cannot be done btw.) You can set cookies for multiple of domains, or even easier call an image (PHP file) of another website that sets the cookie for you. (EG: call example2.com/images/cookie.php?mydta=1 from example.com)