Javascript: retrieve cookies for a particular site -
is possible in javascript save own cookies relate particular site "www.example.com" , can reuse them in browser?
for example: save cookies site "www.example.com" using javascript in chrome. open firefox , using javascript load these cookies , use them.
directly no. make proxy. scenario is:
- user go webpage, save cookies in db
- user change browser , open same website (for ex. uniq url or kind of authentication)
- website loads cookies db
in php can cookies using:
print_r($_cookie)
if domain send header, cookies avaliable every domain:
header('content-type: text/html'); header('access-control-allow-origin: *');
it's not possible read other domains cookies without knowledge. if possible security thread. (ex. spam websites read login information facebook.com)
Comments
Post a Comment