inVINCEable Posted January 6, 2009 Share Posted January 6, 2009 Hey guys, I know I can call header("Location: mylinkhere.com") and PHP will redirect to that site and therefore any cookies mylinkhere.com has will be put into the users browser. Is there anyway that I can just call something like header("mylinkhere.com") so I can get the cookie as I want PHP to hit the site, but not to redirect? Thank you for any advice. Quote Link to comment https://forums.phpfreaks.com/topic/139628-calling-a-header-to-grab-a-cookie/ Share on other sites More sharing options...
premiso Posted January 6, 2009 Share Posted January 6, 2009 You can access cookies with $_COOKIE...not sure exactly what you are asking, so yea. Decided to just throw that out there. Quote Link to comment https://forums.phpfreaks.com/topic/139628-calling-a-header-to-grab-a-cookie/#findComment-730528 Share on other sites More sharing options...
castis Posted January 6, 2009 Share Posted January 6, 2009 you can render an iframe if you want the users browser to access the website but cookies arent transferrable across domains. Quote Link to comment https://forums.phpfreaks.com/topic/139628-calling-a-header-to-grab-a-cookie/#findComment-730534 Share on other sites More sharing options...
inVINCEable Posted January 6, 2009 Author Share Posted January 6, 2009 Ok, thank you guys, just wondering. Quote Link to comment https://forums.phpfreaks.com/topic/139628-calling-a-header-to-grab-a-cookie/#findComment-731116 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.