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
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
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
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
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
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
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
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
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,
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
--- 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
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
-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,
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'],
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
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
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
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.
18 matches
Mail list logo