Reading cookies across different hosts

Posted by Thinker on Stack Overflow See other posts from Stack Overflow or by Thinker
Published on 2010-03-30T15:48:15Z Indexed on 2010/03/30 17:03 UTC
Read the original article Hit count: 319

Filed under:
|
|

I have two sites - both are my projects. On site two, I need to check if the user is logged in on site one. I suppose to do this I should just create a script that puts a cookie into the body of an iframe and then read the iframe contents on site two. But I can't.

Here is a code I made for testing purposes:
http://jsbin.com/oqaza/edit

I got an error, that says:

"Permission denied for <http://jsbin.com> to get property HTMLDocument.nodeType from <http://www.google.com>."

© Stack Overflow or respective owner

Related posts about cookie

Related posts about jQuery