Hi,
I am trying to get a cookie to set in Internet Explorer 7, I have tried several
different setcookie() configurations, this is the latest.
Yes, I read the manual and the user notes, but can't find anything specific
about the different security levels in IE.
$szCookieName = MyCookie;
$nID =
2009/1/17 PHP php_l...@ibcnetwork.net
Hi,
I am trying to get a cookie to set in Internet Explorer 7, I have tried
several different setcookie() configurations, this is the latest.
Yes, I read the manual and the user notes, but can't find anything specific
about the different security levels
Oops, copy and paste error, that is the cookie I was using to delete.
The one I am using to set is acutally:
setcookie($szCookieName, $nID,
time()+$expireTime,/,www.mysite.com,false);
2009/1/17 PHP php_l...@ibcnetwork.net
Hi,
I am trying to get a cookie to set in Internet Explorer 7, I
Because their clock is set wrong on their computer...
Better to set a very long timeout and then handle the expiration
yourself.
Sorry.
On Fri, June 23, 2006 5:26 pm, Tom Ray [Lists] wrote:
I've run into something rather odd with cookies today. I'm working
with
this admin section on a site
At 6:26 PM -0400 6/23/06, Tom Ray [Lists] wrote:
I've run into something rather odd with cookies today. I'm working with this
admin section on a site and I'm setting a cookie that is supposed to be good
for one hour. So in the cookie I have time()+3600 and all was well or that was
until someone
tedd wrote:
At 6:26 PM -0400 6/23/06, Tom Ray [Lists] wrote:
I've run into something rather odd with cookies today. I'm working with this
admin section on a site and I'm setting a cookie that is supposed to be good
for one hour. So in the cookie I have time()+3600 and all was well or that was
On Sat, 2006-06-24 at 10:51, John Meyer wrote:
tedd wrote:
At 6:26 PM -0400 6/23/06, Tom Ray [Lists] wrote:
I've run into something rather odd with cookies today. I'm working with
this admin section on a site and I'm setting a cookie that is supposed to
be good for one hour. So in the
On Saturday 24 June 2006 09:51, John Meyer wrote:
BTW, I have a question: which is the preferred way to handle variables
on the client side: cookies or sessions? Or are there situations where
one should be used and the other should be used in these other situations.
If it's a variable that
I've run into something rather odd with cookies today. I'm working with
this admin section on a site and I'm setting a cookie that is supposed
to be good for one hour. So in the cookie I have time()+3600 and all was
well or that was until someone fired up IE. It seems that IE refused to
set
Hi:
Please review --
http://xn--ovg.com
-- the Set and Get cookie demo (i.e., 1 2). The code is shown.
If you go from Set Cookie to Get Cookie, everything is OK.
If you cut the url, quit the browser, start the browser again, paste
the url and return to the page, everything is OK. The
Hi there!
Look at following code below, and please give me a clue why this
cookie-thing doesn't work?
$IDJoke is set before and is an ID from a row in a db
It seems to work a while, but is there a limit for the expire-parameter?
/G
http://www.varupiraten.se/
//Get cookie from users computer
Ok, please correct me if i'm wrong...
First of all, i'd rather use $_COOKIE instead of $HTTP_COOKIE_VARS.
And in the line...
if ($voteNow == 'Y' AND $userVote == 'Y' AND $cookieJoke != 'voted') {
Why don't you use the operator NOT IDENTICAL (!==), cause != will also
return true if the
Original Message -
From: Jose Miguel
To: Gustav Wiberg
Cc: PHP General
Sent: Thursday, September 08, 2005 3:26 AM
Subject: Re: [PHP] Cookie-question?
Ok, please correct me if i'm wrong...
First of all, i'd rather use $_COOKIE instead of $HTTP_COOKIE_VARS
* Thus wrote water_foul:
i figured it out ty
What did you figure out? People searching the archives would like
to know :)
...
On Sat, 19 Jun 2004 15:51:00 -0600, water_foul
[EMAIL PROTECTED] wrote:
whats wrong with this script
setcookie('link' . $loopnum .
whats wrong with this script
setcookie('link' . $loopnum . '',$url,time()+3600*200);
setcookie('name' . $loopnum . '',$name,time()+3600*200);
it doesn't write the cookies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Did you do this before you sent some outut? This would send headers,
therefore causing you to not be able to send the cookie header.
On Sat, 19 Jun 2004 15:51:00 -0600, water_foul
[EMAIL PROTECTED] wrote:
whats wrong with this script
setcookie('link' . $loopnum . '',$url,time()+3600*200);
all i did was a function and some conditionals
Joel Kitching [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you do this before you sent some outut? This would send headers,
therefore causing you to not be able to send the cookie header.
On Sat, 19 Jun 2004 15:51:00 -0600,
lemme clarify what i mean by function, i created a function
Water_foul [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
all i did was a function and some conditionals
Joel Kitching [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you do this before you sent some outut?
sorry i misse dsomething else i should say, this is in the function but i
haven't sent any output before i call the function
Water_foul [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
lemme clarify what i mean by function, i created a function
Water_foul [EMAIL PROTECTED] wrote in
Are you sure you're trying to access them properly, and on the next
page refresh?
ex)
?php
// Print an individual cookie
echo $_COOKIE[TestCookie];
echo $HTTP_COOKIE_VARS[TestCookie];
// Another way to debug/test is to view all cookies
print_r($_COOKIE);
?
On Sat, 19 Jun 2004 15:56:36 -0600,
i did that and it doesn't say that theere there, how do you set cookies so
that theyy dont expire (maby the expiration is set wrong.. i'm a newb
with cookies
Joel Kitching [EMAIL PROTECTED] wrote
Are you sure you're trying to access them properly, and on the next
page refresh?
ex)
?php
There are many examples (in the comments) at the manual entry for
set_cookie at php.net; go try one of those.
On Sat, 19 Jun 2004 16:07:34 -0600, water_foul
[EMAIL PROTECTED] wrote:
i did that and it doesn't say that theere there, how do you set cookies so
that theyy dont expire (maby the
i figured it out ty
Joel Kitching [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
There are many examples (in the comments) at the manual entry for
set_cookie at php.net; go try one of those.
On Sat, 19 Jun 2004 16:07:34 -0600, water_foul
[EMAIL PROTECTED] wrote:
i did that and
how do i read a cookie created by this code
setcookie('link1',blah,time()+3600,'/');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
First I recomend you to read this page:
http://ar.php.net/manual/en/function.setcookie.php
For that example the code should be:
$_COOKIE['link1']
El sáb, 19-06-2004 a las 19:47, water_foul escribió:
how do i read a cookie created by this code
setcookie('link1',blah,time()+3600,'/');
--
PHP
Angel Freire wrote:
First I recomend you to read this page:
http://ar.php.net/manual/en/function.setcookie.php
I think your recommendtation ought to be
http://ar.php.net/manual/
instead. ;-)
--
Raditha Dissanayake.
-
David R wrote:
Hello,
I have a cookie question.
I have the following code is a file called tc.php
?
global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
$val=123;
setcookie (auth, $val , time() + 3600);
$cookie = $HTTP_COOKIE_VARS['auth'];
echo cookie is:
I have never read anything about a production server domain. How do I set
the cookie for it?
Thanks.
David R
Leif K-Brooks [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
David R wrote:
Hello,
I have a cookie question.
I have the following code is a file called tc.php
?
PROTECTED]
Sent: Friday, July 04, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie question
I have never read anything about a production server domain. How do I
set the cookie for it? Thanks. David R
Leif K-Brooks [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
David R wrote
David R wrote:
I have never read anything about a production server domain. How do I set
the cookie for it?
Same way as for the cookie on your local server, but change the cookie's
domain.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it
/get_example.php3?count=67
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: David R [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie question
I have
://examples.weberdev.com/get_example.php3?count=67
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: David R [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie question
I
Hello,
I have a cookie question.
I have the following code is a file called tc.php
?
global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
$val=123;
setcookie (auth, $val , time() + 3600);
$cookie = $HTTP_COOKIE_VARS['auth'];
echo cookie is: $cookie;
?
I
Discovered my cookie issue. I wasn't setting the path in setcookie() so
it defaulted to what ever directory the script ran in. I set it so it
loads from the root of the website now, and it's working like a charm.
Thanks to all that helped!
John Holmes wrote:
I do the print
I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't
seem to retrieve data from them.
First I set the cookie like so:
setcookie (Access, Test_Value,time()+31536000);
Then I check my Cookies in Netscape and I can see that I have the cookie
stored. But when I go to the page that
First of all, the second try should be print $_COOKIE[Access]; with no
second $. But, more importantly, I would reccomend you change the
cookie name to access. This may not be the problem, but case in names
seems to generally cause problems.
Tom Ray wrote:
I'm having some issue's with
I do the print $_COOKIE[Acccess]; and I still don't see any data print.
Leif K-Brooks wrote:
First of all, the second try should be print $_COOKIE[Access]; with
no second $. But, more importantly, I would reccomend you change the
cookie name to access. This may not be the problem, but
I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't
seem to retrieve data from them.
First I set the cookie like so:
setcookie (Access, Test_Value,time()+31536000);
Try this: setcookie(Access, Test_Value,time()+31536000,/);
- slash as 4th parametr.
--
Krzysztof
I do the print $_COOKIE[Acccess]; and I still don't see any data
print.
Did you typo in your code like you did here??
Try to dump the whole $_COOKIE[] array and see what's in it.
print_r($_COOKIE);
Did you mention what version of PHP you were using?
---John Holmes...
--
PHP General
http://www.php.net/manual/en/ref.session.php
php.net is rather interesting, in which you can do something like type
in php.net/idea or php.net/function and get the manual page
for it...
C I want to ask user to login, and use cookie to save their userid and
C password
C what should i do?
--
40 matches
Mail list logo