PHP Retrieve Cookie which was not set with setcookie
Posted
by Martin
on Stack Overflow
See other posts from Stack Overflow
or by Martin
Published on 2010-04-15T10:36:23Z
Indexed on
2010/04/15
10:43 UTC
Read the original article
Hit count: 407
I have the following problem - a third party software is setting a cookie with the login credentials and then forward the user to my app. I now need to retrieve the cookie values:
The problem is - I can do this easily in the Frontend/AS3 with
var ticket : String = CookieUtil.getCookie( 'ticket' ).toString();
but in PHP, the cookie is not within the $_COOKIES array.
The cookie values are:
Name: ticket
Domain: .www.myserver.com
Path : /
Send for: encrypted connections only
Expires: at end of session
The one I see, and set before in PHP is:
Name: myCookie
Host: www.myserver.com
Path : /
Send for: any type of connection
Expires: at end of session
Actually, since host/domain are both the same, it should be visible in the PHP script, since it is running on this domain.
Any thoughts? Thankx
Martin
© Stack Overflow or respective owner