...

View Full Version : retrieve cookie of child page from parent page



Dooq
10-09-2008, 01:35 PM
Hello everybody

I set a cookie on a page and using it on the code, everthing is ok
then I opened a child page using window.open
I can read the cookie from the parent page, but when I set cookie(change current Parent Page cookie) then I can't read it from the parent page when I close the child page.

How can I solve this problem ?

Arty Effem
10-09-2008, 03:41 PM
Hello everybody

I set a cookie on a page and using it on the code, everthing is ok
then I opened a child page using window.open
I can read the cookie from the parent page, but when I set cookie(change current Parent Page cookie) then I can't read it from the parent page when I close the child page.

How can I solve this problem ?Are these pages in different folders?
To make the cookie accessible throughout, set path=/, otherwise you're probably creating two different cookies.

Dooq
10-09-2008, 05:08 PM
the cookie in the same folder

Arty Effem
10-09-2008, 05:46 PM
the cookie in the same folderCode?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum