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:

  1. user go webpage, save cookies in db
  2. user change browser , open same website (for ex. uniq url or kind of authentication)
  3. 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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -