Josh Hall
Josh Hall

Reputation: 31

Look for cookie of external site then redirect

I have a ning network. i have also got a custom homepage which is just a html/css site. What I need is a script to detect if they have previously visited my ning site and are logged in. If not they don't get redirected. Any thoughts would be great. Thanks

Upvotes: 0

Views: 111

Answers (1)

MassivePenguin
MassivePenguin

Reputation: 3511

You can't read cookies from a different domain (i.e. a page at stackoverflow.com can't read cookies set by microsoft.com) - it's a pretty obvious security feature. See this article on quirksmode for more info. If you're using a different domain for your homepage than your ning site, then you're out of luck.

Upvotes: 1

Related Questions