Re: [PHP] Setting cookies for other domains

2005-03-19 Thread Jason Wong
On Friday 18 March 2005 10:32, Brian Dunning wrote: I suspect it's for sub-domains of sites you administer and not completely different domains altogether. If this is true, and it's not possible for a site to set a cookie for a completely different domain, then why do browsers have

Re: [PHP] Setting cookies for other domains

2005-03-18 Thread Scott Haneda
on 3/17/05 6:32 PM, Brian Dunning at [EMAIL PROTECTED] wrote: I suspect it's for sub-domains of sites you administer and not completely different domains altogether. If this is true, and it's not possible for a site to set a cookie for a completely different domain, then why do browsers

Re: [PHP] Setting cookies for other domains

2005-03-18 Thread Brian Dunning
You are misinterpreting the prefs in browsers, they can not do what you ask. That's fine, I'm perfectly willing to accept this - but can someone explain what the pref IS for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setting cookies for other domains

2005-03-18 Thread Scott Haneda
on 3/18/05 5:47 AM, Brian Dunning at [EMAIL PROTECTED] wrote: You are misinterpreting the prefs in browsers, they can not do what you ask. That's fine, I'm perfectly willing to accept this - but can someone explain what the pref IS for? you have not said which browser and what pref you are

[PHP] Setting cookies for other domains

2005-03-17 Thread Brian Dunning
I've always known that you can specify a domain when you set a cookie, and for kicks I experimented with a test page setting a cookie for the yahoo.com. Seems to me that browsers wouldn't allow this as it could create any number of security problems. I tried the following code, and the yahoo

RE: [PHP] Setting cookies for other domains

2005-03-17 Thread Chris W. Parker
Brian Dunning mailto:[EMAIL PROTECTED] on Thursday, March 17, 2005 4:45 PM said: Question: why didn't this work, is it supposed to work the way I was trying, and if not, then what is that domain variable there for??? Answer: Seems to me that browsers wouldn't allow this as it could

Re: [PHP] Setting cookies for other domains

2005-03-17 Thread Chris Shiflett
Brian Dunning wrote: I've always known that you can specify a domain when you set a cookie, and for kicks I experimented with a test page setting a cookie for the yahoo.com. Seems to me that browsers wouldn't allow this as it could create any number of security problems. This is why the

Re: [PHP] Setting cookies for other domains

2005-03-17 Thread Brian Dunning
I suspect it's for sub-domains of sites you administer and not completely different domains altogether. If this is true, and it's not possible for a site to set a cookie for a completely different domain, then why do browsers have security options to allow or prevent this specific action? I'm

[PHP] Setting cookies

2003-09-30 Thread Chris Boget
We have 2 servers, one for development and one for production. The development server is dev.change.wild.net while the production server is change.wild.net. We are using the following code to set the cookie $expire_time = time()+60*60*24*30; // 30 days setcookie( 'this', $this, $expire_time,

Re: [PHP] Setting cookies

2003-09-30 Thread Brad Pauly
Chris Boget wrote: We are accessing the cookie values using $_COOKIE. What appears to be happening is that when we echo the values of the above cookies on dev.change.wild.net, it is displaying the values set for on change.wild.net. Why is that? Because change.wild.net is the primary domain with

Re: [PHP] Setting cookies

2003-09-30 Thread Chris Shiflett
--- Chris Boget [EMAIL PROTECTED] wrote: We have 2 servers, one for development and one for production. The development server is dev.change.wild.net while the production server is change.wild.net. We are using the following code to set the cookie $expire_time = time()+60*60*24*30; // 30

[PHP] Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Hi! Cookies makes me go AGHH!! Please help me with this: I am setting a cookie like this in my loginscript: setcookie(devProcCookie, cookie value.|.time(), 31536000); // Set cookie header(Location: inside.php); exit; So far it works! But when I go to the inside.php page that looks like

RE: [PHP] Setting Cookies

2002-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Scott 'INtense!' Reismanis [mailto:[EMAIL PROTECTED]] Sent: 08 June 2002 04:52 Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie(username,

[PHP] Setting Cookies

2002-06-07 Thread Scott 'INtense!' Reismanis
Hey all, I am having some troubles setting cookies at the moment wondering if anyone knows the solution. Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie(username, $HTTP_POST_VARS['username'],

[PHP] Setting Cookies

2001-12-10 Thread Steve Osborne
I am attempting to use the SetCookie command. I receive the following error: Warning: Cannot add header information - headers already sent by (reference to current page)... At this point I have authenticated the user, and am trying to set the cookie before redirecting them to the

Re: [PHP] Setting Cookies

2001-12-10 Thread Rasmus Lerdorf
Yes, setting and cookie and redirecting in the same request is not reliable. Some browsers can do it sometimes, others can't. -Rasmus On Mon, 10 Dec 2001, Steve Osborne wrote: I am attempting to use the SetCookie command. I receive the following error: Warning: Cannot add header

Re: [PHP] Setting Cookies

2001-12-10 Thread Valentin V. Petruchek
Not necessary on the top, but before any html begins Zliy Pes, http://zliypes.com.ua - Original Message - From: Steve Osborne [EMAIL PROTECTED] To: PHP-General (E-mail) [EMAIL PROTECTED] Sent: Monday, December 10, 2001 9:39 PM Subject: [PHP] Setting Cookies I am attempting to use

Re: [PHP] Setting Cookies

2001-12-10 Thread Casey Allen Shobe
On Monday 10 December 2001 14:39, Steve Osborne wrote: Warning: Cannot add header information - headers already sent by (reference to current page)... At this point I have authenticated the user, and am trying to set the cookie before redirecting them to the registered users section.