Results 1 to 9 of 9

Thread: [RESOLVED] [2005] Cookies on 2 different domains

  1. #1

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Resolved [RESOLVED] [2005] Cookies on 2 different domains

    Hello everyone,

    I'm working on a website that runs on 2 different domains and I noticed that
    whenever I try to set a cookie I noticed that I have to set the domain before changing the value within the cookie or else the browser won't allow the modification

    I have 2 questions:
    1- What's causing that?
    2- How can I fix this issue? because it's pretty annoying to have to set the domain every time I need to change the value within the cookie.

    Thanks in advance guys
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Cookies on 2 different domains

    Quote Originally Posted by ComputerJy

    1- What's causing that?
    Security.

    2- How can I fix this issue? because it's pretty annoying to have to set the domain every time I need to change the value within the cookie.
    You can't. It's security.

  3. #3

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Cookies on 2 different domains

    Quote Originally Posted by mendhak
    Security.



    You can't. It's security.
    A little explaination!!
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: [2005] Cookies on 2 different domains

    Quote Originally Posted by ComputerJy
    A little explaination!!

    Well, I think he was expecting you realize it is to prevent a website one domain from using a cookie from another.

  5. #5

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Cookies on 2 different domains

    Quote Originally Posted by superbovine
    Well, I think he was expecting you realize it is to prevent a website one domain from using a cookie from another.
    I know that
    but why does that happen?
    and How can I fix this?
    Those were my questions
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2005] Cookies on 2 different domains

    Because no-one except you knows that example.com is the same site as somecompletelydifferentdomain.com.

  7. #7

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Cookies on 2 different domains

    Thanks a lot guys.. It's starting to make sense now
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  8. #8
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: [2005] Cookies on 2 different domains

    Quote Originally Posted by ComputerJy
    I know that
    but why does that happen?
    and How can I fix this?
    Those were my questions

    Why does that happen?
    It is obivious, and was stated early.

    How can you fix this?
    Get both website on the same domain. That is your only option. There is no work around.
    Last edited by superbovine; Jul 9th, 2007 at 08:37 PM.

  9. #9

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Cookies on 2 different domains

    Quote Originally Posted by superbovine
    Why does that happen?
    It is obivious, and was stated early.

    How can you fix this?
    Get both website on the same domain. That is your only option. There is no work around.
    Thanks. but it's not my decision to take
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

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



Click Here to Expand Forum to Full Width