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
Hi,
I am trying to get a cookie to set in Internet Explorer 7, I have tried
several di
2009/1/17 PHP
> 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.
>
> $szCooki
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 =
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
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
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.
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
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 some
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 the
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 brow
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.
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 variable
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
* 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
> > > > > >
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.
-
http://www.raditha.com/megaupl
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
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
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
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 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)
>
>
Are you sure you're trying to access them properly, and on the next
page refresh?
ex)
On Sat, 19 Jun 2004 15:56:36 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> all i did was a function and some conditionals
> "Joel Kitching" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
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]> wrot
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 s
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 -06
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*20
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
aybe you are sending the headers before you set the cookie.
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 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re:
",".avenew.com");
also look here : http://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
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 will
essage-
From: David R [mailto:[EMAIL 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" <[EMA
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.p
David R wrote:
Hello,
I have a cookie question.
I have the following code is a file called tc.php
I have no problem retrieving the value cookie value ( 123 ) on my local
machine but when I post to the internet I can't get the cookie value.
Any ideas why?
Did you set the cookie for the productio
Hello,
I have a cookie question.
I have the following code is a file called tc.php
I have no problem retrieving the value cookie value ( 123 ) on my local
machine but when I post to the internet I can't get the cookie value.
Any ideas why?
Thanks.
David R
--
PHP General Mailing List (http
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 $_COOKIE["Accces
> 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 Ma
> 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.
--
Krzys
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,
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'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 t
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/" or "php.net/" 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?
--
PHP Ge
40 matches
Mail list logo