PHP read a cookie that is on another domain

Posted by pnm123 on Stack Overflow See other posts from Stack Overflow or by pnm123
Published on 2010-05-27T09:37:45Z Indexed on 2010/05/27 9:41 UTC
Read the original article Hit count: 174

Filed under:
|
|
|
|

Hello,

I have two domains. One domain contains the login script. It creates a cookie when logged in. Another domain have a URL shortener.

So, on the 2nd domain that have the URL Shortener script have a file called session.php. Usually I was using $_COOKIE['sessionid'] to get the session id and match it using database.

How can I get the session id now? I have tried few ways but none of them have solve my problem.

Thank you, pnm123

© Stack Overflow or respective owner

Related posts about php

Related posts about cookies