|
-
Jul 5th, 2007, 06:44 AM
#1
Thread Starter
Arabic Poster
[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
-
Jul 5th, 2007, 10:37 AM
#2
Re: [2005] Cookies on 2 different domains
 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.
-
Jul 6th, 2007, 01:33 AM
#3
Thread Starter
Arabic Poster
Re: [2005] Cookies on 2 different domains
 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
-
Jul 8th, 2007, 12:10 AM
#4
Hyperactive Member
Re: [2005] Cookies on 2 different domains
 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.
-
Jul 8th, 2007, 12:51 AM
#5
Thread Starter
Arabic Poster
Re: [2005] Cookies on 2 different domains
 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
-
Jul 8th, 2007, 02:31 AM
#6
Re: [2005] Cookies on 2 different domains
Because no-one except you knows that example.com is the same site as somecompletelydifferentdomain.com.
-
Jul 8th, 2007, 05:17 AM
#7
Thread Starter
Arabic Poster
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
-
Jul 8th, 2007, 11:28 PM
#8
Hyperactive Member
Re: [2005] Cookies on 2 different domains
 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.
-
Jul 9th, 2007, 09:21 PM
#9
Thread Starter
Arabic Poster
Re: [2005] Cookies on 2 different domains
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|