Forum Moderators: open
before i ask, let me introduce my self. I'm hendri, a newbie from Indonesia. I'm a beginner and need to learn from all masters here :)
ok. now go to the question.
i need to know, can the javascript read any cookies from another website?
we illustrate there are 2 website, A and B
can javascript that put in Website A read that visitor who come to website A have login in website B or not?
if it can, please explain me how to do it.
Thanks before :)
It is not possible for javascript to read cookies from another website due to the browsers' cross-domain security model.
However, if you are trying to have it where a user who signs in on domain A is also signed in on domain B (and they are both your domains), there are solutions. Do some searches for terms like "federated login" or "multi site login" or "Single sign-on" and you will have a wealth of information. :)
Pretty much all the solutions that I'm aware of use server side programming to accomplish this however, and tends to be beyond the scope of JavaScript.
I want to make a auto-blogwalking web. user register on this web and submit their blog base on a category. we provide a link/button to let them blogwalking to another members, they can choose blogwalking on their blog's category or in general category. A new tab will be opened after they click that link/button.
in the new tab, one by one another member's blogs will be surfed, and user can click "next" button that will take them to the next blog after they leave their "mark".
My friend told me that this web can use auto surf script. but after i download the script, it's not as I expected. I want the visitor tracker tracks the visitor that come to a blog is from user's IP address, not my web's IP address
that's why i need a script to read cookies from another web. Members put a script that contain "next", "previous" button will active after they log in to my web, if they don't log in, the button will disappear.
Please help me to solved it.. thanks :)