Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    10
    Thanked 0 Times in 0 Posts

    retrieve cookie of child page from parent page

    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 ?

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by Dooq View Post
    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.

  • Users who have thanked Arty Effem for this post:

    Dooq (10-10-2008)

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    10
    Thanked 0 Times in 0 Posts
    the cookie in the same folder

  • #4
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by Dooq View Post
    the cookie in the same folder
    Code?


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •