PDA

View Full Version : extracting data from a cookie made by a differnt page!


vkidv
09-04-2002, 02:11 PM
how can i extract the data out of a cookie which was made by another of my pages? and document.write it!
like those ask for name scripts and it welcomes you (below is example)

ect (example only)

Page 1 - Name asked by java script prompt - cookie saved
page 2 - Welcome <name> how can i do this?

thanx

JSgamer2049
05-25-2004, 04:24 PM
You can read and write a cookie from any page in the EXACT SAME LEVEL. They have to be in the same folder and the same level for it to work. If you have the pages in different folders, then you must use the "domain=some_domain" in your cookie so the entire domain can read it. Or your can use "path=". I have never got either of those to work properly so just keep the pages in the same folder to keep it easy.