Re: [PHP] Cookie use management

2012-05-24 Thread Jeremiah Dodds
Lester Caine les...@lsces.co.uk writes: Not directly a PHP problem, but since PHP tends to automatically create a session cookie I thought it appropriate to ask here first. I don't know about the rest of your post, but you can easily turn off this behavior if it's present (unless you are using

Re: [PHP] Cookie use management

2012-05-24 Thread Lester Caine
( Forgot email address :) ) Jeremiah Dodds wrote: Lester Caineles...@lsces.co.uk writes: Not directly a PHP problem, but since PHP tends to automatically create a session cookie I thought it appropriate to ask here first. I don't know about the rest of your post, but you can easily turn off

Re: [PHP] Cookie access with CLI

2010-06-14 Thread Richard Quadling
2010/6/13 David Česal da...@cesal.cz: Hello, I'm trying to access (from CLI) some website, where login is required. Please, is it possible to set/save some cookies first (login session information) and then access the website as logged user? All through CLI. Thank you very much for any

Re: [PHP] Cookie access with CLI

2010-06-14 Thread Richard Quadling
On 13 June 2010 17:34, Shawn McKenzie nos...@mckenzies.net wrote: On 06/13/2010 09:58 AM, David Česal wrote: Hello, I'm trying to access (from CLI) some website, where login is required. Please, is it possible to set/save some cookies first (login session information) and then access the

Re: [PHP] Cookie access with CLI

2010-06-13 Thread Ashley Sheridan
On Sun, 2010-06-13 at 16:58 +0200, David Česal wrote: Hello, I'm trying to access (from CLI) some website, where login is required. Please, is it possible to set/save some cookies first (login session information) and then access the website as logged user? All through CLI. Thank

Re: [PHP] Cookie access with CLI

2010-06-13 Thread Shawn McKenzie
On 06/13/2010 09:58 AM, David Česal wrote: Hello, I'm trying to access (from CLI) some website, where login is required. Please, is it possible to set/save some cookies first (login session information) and then access the website as logged user? All through CLI. Thank you very much

Re: [PHP] Cookie Quandary

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 10:35 -0700, Brian Dunning wrote: I wrote some cookies for a whole bunch of site admins, but failed to set the path, so all the cookies are set to '/admin', which is not going to work for everything they need to do. They are also too long, set for 6 months. I

Re: [PHP] Cookie Quandary

2009-10-27 Thread Brian Dunning
No, I'm talking about cookies, thus the references to pathnames and expirations. On Oct 27, 2009, at 10:56 AM, Ashley Sheridan wrote: Cookies are client-side. Do you mean session files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookie Quandary

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:34 -0700, Brian Dunning wrote: No, I'm talking about cookies, thus the references to pathnames and expirations. On Oct 27, 2009, at 10:56 AM, Ashley Sheridan wrote: Cookies are client-side. Do you mean session files? How are you writing the cookies to a

Re: [PHP] Cookie Quandary

2009-10-27 Thread John Black
Brian Dunning wrote: I want to kill everyones' '/admin' cookies, but I'm worried that some browsers might erase both cookies if I do this. Does anyone know if I can safely kill the '/admin' cookie without risking deletion of the '/' cookie? How about you store the data, expire both cookies

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 or coding

2008-11-05 Thread Boyd, Todd M.
-Original Message- From: Zhao chunliang[chunliang.zhao] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 3:52 AM To: php-general@lists.php.net Subject: 答复: [PHP]COOKIE or coding 1.Open the url : http://127.0.0.1/showCookie.php

RE: [PHP] cookie encoding/decoding

2008-07-11 Thread Jeff Demel
Anyone have any ideas on this at all? -Original Message- From: Jeff Demel [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 10:50 AM To: php-general@lists.php.net Subject: [PHP] cookie encoding/decoding I have a situation where a cookie is being set elsewhere on a site by ASP.NET,

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread tedd
Mark: You said: I'm gonna shit and go blind cause I haven't got a clue... and The only thing preventing me from gouging out my eyes right now is ... Are you sure that programming is right for you? It sounds like you're going to hurt yourself. This was just a cookie. :-) Cheers,

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Mark Weaver
tedd wrote: Mark: You said: I'm gonna shit and go blind cause I haven't got a clue... and The only thing preventing me from gouging out my eyes right now is ... Are you sure that programming is right for you? It sounds like you're going to hurt yourself. This was just a cookie. :-)

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread tedd
At 8:37 AM -0400 3/26/08, Mark Weaver wrote: I really enjoy programming. It satisfies a creative bent in me, but from time to time I do get very frustrated with it. Especially when, as in this case, it's only a cookie and an easy concept. What frustrates me is I know I'm missing something, but

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Richard Lynch
On Tue, March 25, 2008 8:11 pm, Mark Weaver wrote: I suspect I already know part of the answer to this, but I'm not sure which way to go with it. I've got a project I'm working on and one of the things it's got to do is set cookies and then read them later. When the app was first written I

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Daniel Brown
On Tue, Mar 25, 2008 at 9:49 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:31 PM, Daniel Brown [EMAIL PROTECTED] wrote: Is this block of code executed immediately after the cookie is set? Sometimes PHP works too fast for its own good and the client

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Daniel Brown
On Tue, Mar 25, 2008 at 10:22 PM, Mark Weaver [EMAIL PROTECTED] wrote: Geez! now my $_SESSION isn't persisting to the next page when the screen refreshes. The only thing preventing me from gouging out my eyes right now is that I know I'll get this stuff. It's just a matter of time...

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Andrew Ballard
On Tue, Mar 25, 2008 at 9:31 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:11 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, [snip!] Cookie Test Page == if (isset($_COOKIE[cookiename])){ list($first,$second,$third) =

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Casey
On Mar 25, 2008, at 6:11 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I suspect I already know part of the answer to this, but I'm not sure which way to go with it. I've got a project I'm working on and one of the things it's got to do is set cookies and then read them later. When

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Daniel Brown
On Tue, Mar 25, 2008 at 9:11 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, [snip!] Cookie Test Page == if (isset($_COOKIE[cookiename])){ list($first,$second,$third) = explode('|',$_COOKIE[cookiename]); echo pI found your cookie/p\n;

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:31 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:11 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, [snip!] Cookie Test Page == if (isset($_COOKIE[cookiename])){

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Andrew Ballard
On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to PHP. It's just how http works, so it's the same for ASP, Perl, I suspect

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Casey
On Mar 25, 2008, at 7:12 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to PHP. It's just how http works, so it's the same for

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Andrew Ballard
On Tue, Mar 25, 2008 at 10:19 PM, Casey [EMAIL PROTECTED] wrote: On Mar 25, 2008, at 7:12 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Jim Lucas
Mark Weaver wrote: Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to PHP. It's just how http works,

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Mark Weaver
Jim Lucas wrote: Mark Weaver wrote: Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver [EMAIL PROTECTED] wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to PHP. It's

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-18 Thread Richard Lynch
Set your session time out to, oh, 2 years or less (as in the spec, they are gonna ignore you if you try more than 2 years). You could even set *ONE* cookie with all the values serialized in an array, and probably stay under the 4K limit. Then you get people like me who, if a cookie value looks

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-17 Thread dpgirago
On Wed, August 16, 2006 9:00 am, [EMAIL PROTECTED] wrote: Does IE6 limit somehow/somewhere the number of cookie variables I can create and store? Richard Lynch responded: Yes. Read the Cookie spec. There's no need for any site to ever send more than ONE Cookie anyway. Just use

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-17 Thread Adam Zey
[EMAIL PROTECTED] wrote: There are 24 check boxes, and each selection triggers a graphical display of radiation levels in a specific area over the last hour. David So, if the user deletes the cookie, they grow a third eye? At last, a viable method of preventing privacy nazis from deleting my

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-16 Thread dpgirago
On Wed, August 16, 2006 9:00 am, [EMAIL PROTECTED] wrote: Does IE6 limit somehow/somewhere the number of cookie variables I can create and store? Richard Lynch wrote: Yes. Read the Cookie spec. There's no need for any site to ever send more than ONE Cookie anyway. Just use

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 9:00 am, [EMAIL PROTECTED] wrote: Does IE6 limit somehow/somewhere the number of cookie variables I can create and store? Yes. Read the Cookie spec. There's no need for any site to ever send more than ONE Cookie anyway. Just use session_start() and you can store all

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

RE: [PHP] cookie style saving without cookies

2006-05-09 Thread Jay Blanchard
[snip] I have a realty site where people want to be able to save properties but don't want to enter a username/password, etc. My first thought is just to save the info to a cookie but am not sure if this is the best way. If cookies aren't allowed, they will loose this functionality. I had

Re: [PHP] cookie style saving without cookies

2006-05-09 Thread tedd
At 8:42 AM -0400 5/9/06, blackwater dev wrote: I have a realty site where people want to be able to save properties but don't want to enter a username/password, etc. My first thought is just to save the info to a cookie but am not sure if this is the best way. If cookies aren't allowed, they

Re: [PHP] Cookie reposted

2006-01-23 Thread David Grant
Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David tedd wrote: Hi: After I successfully writing a cookie, I'm having a problems reading the cookie

Re: [PHP] Cookie reposted

2006-01-23 Thread tedd
Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk -- how doe

Re: [PHP] Cookie reposted

2006-01-23 Thread Richard Correia
By any chance, you are rewritting it/deleting it? Thanks Rich On 1/24/06, tedd [EMAIL PROTECTED] wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent.

Re: [PHP] Cookie reposted

2006-01-23 Thread Stut
tedd wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk

Re: [PHP] Cookie reposted

2006-01-23 Thread tedd
By any chance, you are rewritting it/deleting it? Thanks Rich Rich: I'm definitely not rewriting the cookie, for if I quit the browser and return to the url again, the cookie data is still there. It's only when I return to the same url a second time that it doesn't appear again. It looks

Re: [PHP] Cookie reposted

2006-01-23 Thread Richard Correia
Can you check your temporary internet files for the cookie? Does that cookie is deleted from the browser cache? With OS/Webserver/browser you are using? Thanks Rich On 1/24/06, tedd [EMAIL PROTECTED] wrote: By any chance, you are rewritting it/deleting it? Thanks Rich Rich: I'm

Re: [PHP] Cookie reposted [Solved]

2006-01-23 Thread tedd
tedd wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk

Re: [PHP] Cookie problem

2006-01-15 Thread Curt Zirzow
On Sat, Jan 14, 2006 at 12:57:46PM -0500, Al wrote: Can't get a cookie to set. Below is the code near the file top BEFORE any html output. ... ## code print_r($_POST) session_start(); print_r($_COOKIE); headers could be sent already, up your error_reporting, or check your logs for headers

Re: [PHP] Cookie problem

2006-01-14 Thread Aaron Koning
Try simplifying the problem to determine the error point. For example don't involve $_POST just try setting a cookie with hard coded variables. If that works then add in the $_POST and test for BOTH $_POST['prefs'] and $_POST['filter']. Example of simplification: ?php // Send cookie

Re: [PHP] Cookie problem with IE

2005-11-22 Thread Kristen G. Thorson
Jay Blanchard wrote: But I sure would like to see the URL once he has clicked it. Have you tried changing to $_GET['page']? Again, all of this is just for gigglesbut there is likely to be a clue. On privacy policies in IE (can he try another browser?) what is his setting? I'm still

RE: [PHP] Cookie problem with IE

2005-11-22 Thread Jay Blanchard
[snip] I have not looked into it, but do some internet security apps like Norton try to block certain cookies? I've not come across this, as I don't really use those programs, but right now I'm grasping for straws. [/snip] Certain anti-virus/spyware programs can and do block cookies and can be

RE: [PHP] Cookie problem with IE

2005-11-21 Thread Jay Blanchard
[snip] Anyone have any suggestions? I'm still stuck. [/snip] Can you send him another test where a basic cookie gets set and then checked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookie problem with IE

2005-11-21 Thread Kristen G. Thorson
Jay Blanchard wrote: [snip] Anyone have any suggestions? I'm still stuck. [/snip] Can you send him another test where a basic cookie gets set and then checked? . Not sure what you mean. I sent him to this script: ?php if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie

RE: [PHP] Cookie problem with IE

2005-11-21 Thread Jay Blanchard
[snip] Not sure what you mean. I sent him to this script: ?php if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie has been set.',time()+5, /); echo 'a href='.$_SERVER['PHP_SELF'].'?page=1Test cookie./a'; } else if( $_REQUEST['page'] == '1' ) { if( isset( $_COOKIE['VATtest'] )

Re: [PHP] Cookie problem with IE

2005-11-21 Thread Kristen G. Thorson
Jay Blanchard wrote: [snip] Not sure what you mean. I sent him to this script: ?php if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie has been set.',time()+5, /); echo 'a href='.$_SERVER['PHP_SELF'].'?page=1Test cookie./a'; } else if( $_REQUEST['page'] == '1' ) { if( isset(

RE: [PHP] Cookie problem with IE

2005-11-21 Thread Jay Blanchard
[snip] Sorry, I should have paid more attention. Is $_REQUEST['page'] correctly set when (print_r the array...just for giggles) I can verify $_REQUEST is correct for me, and I'm sure it's correct for him too, since he gets Cookie NOT set. The second if statement requires $_REQUEST['page'] to

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 saving problem

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP GENERAL LIST: I am trying to get the session cookie to stay active for 10 years I have at the top of EVERY page on my website an include statement which includes a file which contains only this code: ? # THIS FILE JUST SETS THE SESSION AND INITIALIZES IT TO 10 YEARS

Re: [PHP] cookie saving problem

2004-09-20 Thread Jason Wong
On Tuesday 21 September 2004 07:33, Jason FB wrote: I am trying to get the session cookie to stay active for 10 years Session cookies as its name suggests lasts for the duration of the session, meaning your browser does not store them anywhere permanent and are lost when browser is closed.

Re: [PHP] Cookie behaviour

2004-08-23 Thread Chris Shiflett
--- Michael Purdy [EMAIL PROTECTED] wrote: script language=php setcookie('cat','large',time()+3600); setcookie('dog','small',time()+3600); /script The outcome of this script is that only the LAST cookie is successfully stored. This seems unlikely. It's possible that neither of these

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 .

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

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 problem with old browser.

2004-01-21 Thread Katie Dewees
Chris W wrote: I don't know that this really matters, but I am having problems with cookies getting set when viewing my site with an old version of netscape, I still have installed 4.79. I'm not that concerned with supporting that old of a browser but I am 99% sure the site was working with

Re: [PHP] Cookie Guestion

2004-01-20 Thread CPT John W. Holmes
From: Chris W [EMAIL PROTECTED] I am still new to web programing but I have a lot of experience in developing non web based applications. So I think I am a reasonably clever programmer and I have now done enough web programming that I understand the cookie mechanism. What I can't figure

Re: [PHP] Cookie Guestion

2004-01-20 Thread Stuart
CPT John W. Holmes wrote: From: Chris W [EMAIL PROTECTED] I am still new to web programing but I have a lot of experience in developing non web based applications. So I think I am a reasonably clever programmer and I have now done enough web programming that I understand the cookie mechanism.

Re: [PHP] Cookie Guestion

2004-01-20 Thread CPT John W. Holmes
From: Stuart [EMAIL PROTECTED] And don't forget the effect media hype had on their reputation. Cookies were portrayed as bad guys. As John says, they're not if they're used correctly, but it only takes one high-profile example of improper use to tarnish a reputation forever. And as that

Re: [PHP] Cookie Guestion

2004-01-20 Thread Chris Shiflett
--- CPT John W. Holmes [EMAIL PROTECTED] wrote: I am still new to web programing but I have a lot of experience in developing non web based applications. So I think I am a reasonably clever programmer and I have now done enough web programming that I understand the cookie mechanism. What I

Re: [PHP] Cookie advice

2003-09-12 Thread Robert Cummings
I don't think there's any kind of consensus :) But to perhaps lead you in the right direction... how long do you think should pass before someone who logged in once before will log in again? if you expect a longer than 30 day time period, then 30 days is too short. If you expect within a week or 2

Re: [PHP] cookie crumbles

2003-09-04 Thread John Taylor-Johnston
As it turned out, all I had to do was get rid of the period . and things began to work better. I also had to remember to close my browser and empty the cookie jar. Thanks, J Jaap Van Ganswijk wrote: At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: I create this cookie, using

Re: [PHP] Cookie, how to name

2003-09-01 Thread Chris Shiflett
--- John Taylor-Johnston [EMAIL PROTECTED] wrote: if (!isset($_COOKIE[weather_htm.$StudentId])) $_COOKIE[weather_htm$StudentId] Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List

Re: [PHP] cookie crumbles

2003-09-01 Thread Jaap van Ganswijk
At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: I create this cookie, using Javascript:: testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm9995 1 If the browser is reloaded, I want php to read the cookie and do my else statement. Even after a browser shut-down and restart, I

Re: [PHP] cookie crumbles

2003-09-01 Thread John W. Holmes
John Taylor-Johnston wrote: $StudentId = weather.htm9995; if (!isset($_COOKIE[weather.htm$StudentId])) if(!isset($_COOKIE[$StudentID])) { echo Cookie not found, not reading weather.htm$StudentIdbr; echo \$_COOKIE[\weather.htm$StudentId\]. $_COOKIE[weather.htm$StudentId].-hr; }else{ echo

Re: [PHP] Cookie saving path on Clinet

2003-08-26 Thread Tom Rogers
Hi, Monday, August 25, 2003, 12:01:53 PM, you wrote: BA Hi Everybody BA I know this is vague but couldn't find the answer. BA Where (i mean system path) cookies are saved on Client's machine. BA I though it is in windows/temp or temporaray internet files (in win 2000) but it wasn't there. BA

RE: [PHP] cookie not setting in IE

2003-08-14 Thread Chris W. Parker
Michael A Smith mailto:[EMAIL PROTECTED] on Wednesday, August 13, 2003 1:36 PM said: In the status bar, at the bottom, are you getting a little red eye or something of the sort? If you are IE is blocking the cookie for you. Gosh don't I sound like a moron (I'm not I promise!!!). Sure

Re: [PHP] cookie not setting in IE

2003-08-14 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: It works in Mozilla Firebird and it even works in a friends IE. For some reason my computer won't accept the cookie. Can you show us the HTTP transaction using ethereal or something? Chris = Become a better Web developer with the HTTP

RE: [PHP] cookie not setting in IE

2003-08-14 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Wednesday, August 13, 2003 1:33 PM said: It works in Mozilla Firebird and it even works in a friends IE. For some reason my computer won't accept the cookie. Can you show us the HTTP transaction using ethereal or something? Unfortunately, no.

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
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: [PHP] cookie

Re: [PHP] cookie problem

2003-06-23 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 23 Jun 2003 at 10:18, lines prefixed by '' were originally written by you. I am using the following codes to create cookie and validate login, but some members can't login, I checked their username and password is correct.. $info

RE: [PHP] Cookie or Session??

2003-03-21 Thread Mike Brum
It really depends on what you want to do. Cookies are client-side information and thus you can run into issues where clients don't allow cookies, have cookie-blocking apps or have outdated software that doesn't support them (though the latter continues to become less of an option as time passes).

Re: [PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
Thanks Mike, I think using session will solve the problem of some user having difficulties in loign. - Original Message - From: Mike Brum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 21, 2003 4:12 PM Subject: RE: [PHP] Cookie or Session?? It really depends on what you

Re: [PHP] Cookie or Session??

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 00:18, Awlad Hussain wrote: I think using session will solve the problem of some user having difficulties in loign. Sessions still require that the browser accept a session cookie (temporary cookie that is not (or should not be) stored on disk). Some browsers allow

Re: [PHP] Cookie or Session??

2003-03-21 Thread Justin French
on 22/03/03 4:18 AM, Jason Wong ([EMAIL PROTECTED]) wrote: Bottom line is if your site requires to login you should make it mandatory that the user enables cookies on their browser. mandatory seems a little harsh... I haven't seen any bad side effects of trans sid yet (granted, I haven't

Re: [PHP] Cookie or Session??

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 11:38, Justin French wrote: on 22/03/03 4:18 AM, Jason Wong ([EMAIL PROTECTED]) wrote: Bottom line is if your site requires to login you should make it mandatory that the user enables cookies on their browser. mandatory seems a little harsh... I haven't seen any

  1   2   >