[PHP] Cookie Question

2009-01-17 Thread 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. $szCookieName = MyCookie; $nID =

Re: [PHP] Cookie Question

2009-01-17 Thread Török Alpár
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

Re: [PHP] Cookie Question

2009-01-17 Thread PHP
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

Re: [PHP] Cookie Question

2006-06-27 Thread Richard Lynch
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

Re: [PHP] Cookie Question

2006-06-24 Thread tedd
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

Re: [PHP] Cookie Question

2006-06-24 Thread John Meyer
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

Re: [PHP] Cookie Question

2006-06-24 Thread Robert Cummings
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

Re: [PHP] Cookie Question

2006-06-24 Thread Larry Garfield
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

[PHP] Cookie Question

2006-06-23 Thread Tom Ray [Lists]
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

[PHP] cookie question

2006-01-22 Thread tedd
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

[PHP] Cookie-question?

2005-09-07 Thread Gustav Wiberg
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

Re: [PHP] Cookie-question?

2005-09-07 Thread Jose Miguel
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

Re: [PHP] Cookie-question?

2005-09-07 Thread Gustav Wiberg
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

Re: [PHP] cookie question

2004-06-21 Thread Curt Zirzow
* 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 .

[PHP] cookie question

2004-06-19 Thread water_foul
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

Re: [PHP] cookie question

2004-06-19 Thread Joel Kitching
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);

Re: [PHP] cookie question

2004-06-19 Thread water_foul
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,

Re: [PHP] cookie question

2004-06-19 Thread water_foul
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?

Re: [PHP] cookie question

2004-06-19 Thread water_foul
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

Re: [PHP] cookie question

2004-06-19 Thread Joel Kitching
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,

Re: [PHP] cookie question

2004-06-19 Thread water_foul
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

Re: [PHP] cookie question

2004-06-19 Thread Joel Kitching
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

Re: [PHP] cookie question

2004-06-19 Thread water_foul
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

[PHP] cookie question...

2004-06-19 Thread water_foul
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

Re: [PHP] cookie question...

2004-06-19 Thread Angel Freire
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

Re: [PHP] cookie question...

2004-06-19 Thread raditha dissanayake
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. -

Re: [PHP] cookie question

2003-07-04 Thread Leif K-Brooks
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:

Re: [PHP] cookie question

2003-07-04 Thread David R
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 ?

RE: [PHP] cookie question

2003-07-04 Thread Boaz Yahav
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

Re: [PHP] cookie question

2003-07-04 Thread Leif K-Brooks
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

Re: [PHP] cookie question

2003-07-04 Thread David R
/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

RE: [PHP] cookie question

2003-07-04 Thread Boaz Yahav
://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

[PHP] cookie question

2003-07-03 Thread David R
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

Re: [PHP] COOKIE Question.

2002-09-18 Thread Tom Ray
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

[PHP] COOKIE Question.

2002-09-17 Thread Tom Ray
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

Re: [PHP] COOKIE Question.

2002-09-17 Thread Leif K-Brooks
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

Re: [PHP] COOKIE Question.

2002-09-17 Thread Tom Ray
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

Re: [PHP] COOKIE Question.

2002-09-17 Thread Krzysztof Dziekiewicz
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

RE: [PHP] COOKIE Question.

2002-09-17 Thread John Holmes
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

[PHP] Re: [PHP-WIN] php cookie question

2002-08-01 Thread Damian Harouff
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? --