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 h

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: Aaron On 1/14/06, Al <[EMAIL

[PHP] Cookie problem

2006-01-14 Thread Al
Can't get a cookie to set. Below is the code near the file top BEFORE any html output. $_POST['prefs'] comes from a hidden field in the middle of the html output. $_POST['filter'] comes from a select option. A Submit button closes the page and refreshes it. print_r($_POST) shows $_POST['prefs

Re[2]: [PHP] Cookie problem with IE

2005-11-22 Thread Richard Davey
Hi Kristen, Tuesday, November 22, 2005, 3:21:31 PM, you wrote: > 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. Yes they do - I r

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-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[2]: [PHP] Cookie problem with IE

2005-11-21 Thread Richard Davey
Hi Kristen, Monday, November 21, 2005, 4:48:26 PM, you wrote: > I've been looking through the comments in the manual, and several > people mention privacy policies creating a problem in IE. My problem > is none of this can be duplicated on my machine (or any other so > far), and this customer is

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'] t

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: Test cookie.'; } else if( $_REQUEST['page'] == '1' ) { if( isset( $_COOKIE['VATtest'] ) ) { echo $_COOKIE['VATtest']; } else { echo 'Cookie NOT set.'; } } ?> Which is all I had in entirety. Is this not a "basi

RE: [PHP] Cookie problem with IE

2005-11-21 Thread Jay Blanchard
[snip] Not sure what you mean. I sent him to this script: Test cookie.'; } else if( $_REQUEST['page'] == '1' ) { if( isset( $_COOKIE['VATtest'] ) ) { echo $_COOKIE['VATtest']; } else { echo 'Cookie NOT set.'; } } ?> Which is all I had in entirety. Is this not a "basic cookie?" [/snip]

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: Test cookie.'; } else if( $_REQUEST['page'] == '1' ) { if( isset( $_COO

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

[PHP] Cookie problem with IE

2005-11-21 Thread Kristen G. Thorson
Anyone have any suggestions? I'm still stuck. thanks, kgt Kristen G. Thorson wrote: I'm having problems with a customer who can't login to a wholesaler application. To ensure the problem was that the cookie was not being set, I sent him to this script: if( !isset( $_REQUEST['page'] ) )

[PHP] Cookie problem

2005-11-18 Thread Kristen G. Thorson
I'm having problems with a customer who can't login to a wholesaler application. To ensure the problem was that the cookie was not being set, I sent him to this script: if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie has been set.',time()+5, "/"); echo 'Test cookie.'; } e

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 w

[PHP] Cookie problem with old browser.

2004-01-21 Thread Chris W
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 that browser at o

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.. >

[PHP] cookie problem

2003-06-23 Thread Huzz
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.. function docookie($id, $username, $passwd,$fname, $lname, $suspended,$rememberme) { $info = base64_encode("$id:$username:$passwd:$fname:$lname:$su

[PHP] php cookie problem ie 5.5

2003-05-30 Thread steven melendez
Hi, I'm using php 4.2 with NT/IIS and am having a problem setting cookies on ie 5.5. I am setting a series of cookies using the array syntax: setcookie ("cookie[three]", "cookiethree"); setcookie ("cookie[two]", "cookietwo"); setcookie ("cookie[one]", "cookieone"); I've seen a variety of entries

[PHP] cookie problem.

2003-03-07 Thread H M
hello. i'm new to this NG, so i don't know if this is the right mailinglist / newsgroup for my problem. if not, please let me know which one to post it to. anyway, here goes: i'm designing a new website with several php scripts. for that purpose i've configuerd my server (apache under MacOSX 10

[PHP] cookie problem..

2003-02-21 Thread Terry Lau
Hello, I want to set a cookie when I enter a text into the text field, and it shows the text I submitted immediately, thus I write a sample php code like this: (I set the text field is Name and the data will be sent to another page) In another page, I insert in the beginning of the code.

RE: [PHP] cookie problem....

2003-02-13 Thread Bryan Lipscy
>From your code snip it looks like you are missing ?> after the if contruct. Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookie problem....

2003-02-13 Thread Rick Emery
ebruary 13, 2003 7:20 AM Subject: Re: [PHP] cookie problem On Thursday 13 February 2003 16:07, Terry Lau wrote: > Hello, > I created a PHP page that included cookie, here is the PHP code: > if (isset($HTTP_POST_VARS['Name'])) { > setcookie("Name", $HTTP_POST_V

Re: [PHP] cookie problem....

2003-02-13 Thread Marek Kilimajer
This cannot be the problem, session_start is for sessions Jason Wong wrote: >On Thursday 13 February 2003 16:07, Terry Lau wrote: > > >>Hello, >>I created a PHP page that included cookie, here is the PHP code: >>>if (isset($HTTP_POST_VARS['Name'])) { >>setcookie("Name", $HTTP_POST_VARS['Nam

Re: [PHP] cookie problem....

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 16:07, Terry Lau wrote: > Hello, > I created a PHP page that included cookie, here is the PHP code: > if (isset($HTTP_POST_VARS['Name'])) { > setcookie("Name", $HTTP_POST_VARS['Name'], time()+86400*10); > } [snip] > But when I called the cookie variable in anothe

[PHP] cookie problem....

2003-02-13 Thread Terry Lau
Hello, I created a PHP page that included cookie, here is the PHP code: if (isset($HTTP_POST_VARS['Name'])) { setcookie("Name", $HTTP_POST_VARS['Name'], time()+86400*10); } Untitled Document Name: But when I called the cookie variable in another page, it showed "Noti

[PHP] cookie problem...

2002-09-12 Thread info
we are using apache 1.3.12 server, php 4.2.3 on linux. Before, we didn't write cookies.txt on harddisk. We changed some configuration in httpd.conf like. We disabled mod_proxy module and then cookie had been wrote. But now, we are not reading cookie variables from cookies.txt (Netscape). I konw p

[PHP] cookie problem...

2002-09-11 Thread rtrt
we are using apache 1.3.12 server, php 4.2.3 on linux. Before, we didn't write cookies.txt on harddisk. We changed some configuration in httpd.conf like. We disabled mod_proxy module and then cookie had been wrote. But now, we are not reading cookie variables from cookies.txt (Netscape). I konw p

RE: [PHP] cookie problem. Not possible to set and read a cookie on the same page?

2002-03-26 Thread Rick Emery
- From: andy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] cookie problem. Not possible to set and read a cookie on the same page? Hi there, I am wondering if it is possible to send a cookie and read it on the same page. Following

Re: [PHP] cookie problem. Not possible to set and read a cookie on the same page?

2002-03-26 Thread Erik Price
On Tuesday, March 26, 2002, at 11:42 AM, Miguel Cruz wrote: > There is no chance for the server to re-read the cookies from the > browser > after step 2 above, unless, as you've observed, you refresh the page, > which in effect just repeats both steps. One ugly way that I've gotten around thi

Re: [PHP] cookie problem. Not possible to set and read a cookie onthe same page?

2002-03-26 Thread Miguel Cruz
On Tue, 26 Mar 2002, andy wrote: > I am wondering if it is possible to send a cookie and read it on the same > page. > > Following environment: > > There is a cookie already on the machine of the client, but expired. > Now I am setting a new cookie and reading it on the same page via $sess_id =

[PHP] cookie problem. Not possible to set and read a cookie on the same page?

2002-03-26 Thread andy
Hi there, I am wondering if it is possible to send a cookie and read it on the same page. Following environment: There is a cookie already on the machine of the client, but expired. Now I am setting a new cookie and reading it on the same page via $sess_id = $HTTP_COOKIE_VARS[$sesscookiename];

[PHP] cookie problem

2002-02-10 Thread Impex Holidays Maldives / Hasan
Hi all, Perhaps some one can help me. If I send a cookie like setcookie(+ACI-cookie+AF8-agtpasswd+ACI-,+ACQ-form+AF8-agent+AF8-pass, time()+-1200, +ACI-/+ACI-)+ADs- it does not work on the terminal which has a new version of windows 2000 and i use IE6. The browser does not store the cookie.

Re: [PHP] Cookie problem

2001-09-20 Thread Richard Baskett
It depends on which browser you are using and on what platform. On the MacOS in IE you can view cookies by going to Edit -> Preferences -> Cookies in Netscape you can also view the cookies with the Preferences menu. On the PC it's a little more difficult. In IE you go to Tools -> Internet Optio

Re: [PHP] Cookie problem

2001-09-20 Thread Murat
your header line works fine, but where are cookie files written? i didn't see any cookie file about it in my windows/cookie directory after it had been created?? thanks Richard Baskett wrote: > Here use this cookie that I wrote, it works in every browser, every os. > > ---

Re: [PHP] Cookie problem

2001-09-19 Thread Richard Baskett
Here use this cookie that I wrote, it works in every browser, every os. function NextYear () { $today = gmdate("l, d-M-"); $today .= gmdate("Y")+1; $today .= gmdate(" H:i:s")." GMT"; return $today; } $on

[PHP] Cookie problem

2001-09-19 Thread Murat
hi, i have a problem with cookie. true login page -> decide page -> main page | false | login page username and password are posted by login page to decide page, if it's true, main page wi

Re: [PHP] Cookie problem

2001-03-27 Thread Martin Skjöldebrand
Thanks everyone for all the responses. I think I'll look into sessions in the future. Meanwhile I'll have to see what others come up with. Thanks, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] Cookie problem

2001-03-26 Thread Chris Lee
I have to agree Nuno, sessions are alot easier/simpler. -- Chris Lee [EMAIL PROTECTED] "Nuno Silva" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, short: try removing the third parameter to setcookie and if the errors go away you know it's a co

Re: [PHP] Cookie problem

2001-03-25 Thread Nuno Silva
Hello, short: try removing the third parameter to setcookie and if the errors go away you know it's a cookie problem :) long: you're setting auth based in the (server's) time + 600sec. If the client (or even the server) has a clock skew... well bad luck :) removing the third parameter mak

[PHP] Cookie problem

2001-03-25 Thread Martin Skjöldebrand
I'm experiencing all kinds of problems with, what we suppose is the cookie setting. This is the code: if (isset($authentication)) { setcookie("status", $status, time()+600); setcookie("user", $user, time()+600); setcookie("group", $group, time()+600); setcookie("authentication", $authent

[PHP] Cookie problem

2001-02-05 Thread Ben Wiechman
I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. Problem is, when I do this, the script does not set the cookie variables. If I just

[PHP] cookie problem

2001-01-18 Thread Fai
I'm working with php3 and IIS, i had set cookie with: name, $session->cookie, $session->timeid+3600, "/"); ?> but these cokkie work right only on localhost and not on the others computer of the LAN, the options setting of internet: enable Cookie, where is the problem? Thank You! -- PHP General