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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -