Re: Re[2]: [PHP] Script not working from one computer
I have a feeling it's going to work out to be something stupidly simple... like these problems always do. :) =embarrassingly so! If you're taking this all off a user's say-so, then it sounds like an eyeball job to me... I never did solve it, but it came down to a weird cookie problem. The Session cookie was being set and accepted correctly, but regular cookies would never set. Other web sites could set cookies, but none from this web site were ever written. I don't know if it's because of SSL or what. It's one of those things that worked fine yesterday and now doesn't work and the user didn't do anything. Oh well... IE allows quite a bit of control over the handling of cookies. Most admins would probably focus on the Security tab and the possibilities it offers. However there is also a vicious back-hander under the Privacy tab (that you can't see/get no warning about, under normal operation) and with a simple command one can ban cookies from any nominated web site(s) - hence everything works fine for accessing (eg) the NYTimes but blows up in your face (sorry SeaBee humor) when you access the nominated site. Could be done by FOBCAK, user brilliance=ignorance, or deliberate sabotage/cynical Admin baiting! Couldn't access various online purchasing sites from a hardened laptop, so if they didn't say that they required cookies and I called their HelpDesk, much going round-and-round resulted... Herewith another argument for keeping sessions/controls exclusively server-side! =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Script not working from one computer
Hi John, You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? Please check the IE on the offending machine. Does it have security settings that forbid cookies? Check the ipconfig/all settings against other machines/check any contents of HOSTS file (and the other MS one, if used) Check execution of phpinfo() against similar on other/working machines. Regards, =dn Tuesday, December 10, 2002, 2:31:48 AM, you wrote: Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock 1JWH on? Is the machine in question set-up on the network correctly, i.e. has it 1JWH got domain, gateway addresses etc setup - this would only affect it if the Intranet server is set-up to only allow a certain range of IP addresses or doamin/hostnames etc. 1JWH Browser's are the same (128bit). It's not a laptop. The web page can pull up 1JWH any other external web page correctly. 1JWH What gets me is that the computer can pull up the log in page. It can pull 1JWH up another, unprotected page from that web server. But, no matter who tries 1JWH to log in from that machine, I get a bad username and password, even though 1JWH they are right. It's like the browser is sending bad data to a script that 1JWH works fine from every other computer. 1JWH Anyone else have any other ideas? 1JWH ---John Holmes... I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does 1JWH the typical SELECT to find a match. If it's good, it sets some session 1JWH variables and redirects to a main page, otherwise redirects back to the login page with an error message. The script works from all computers but one. The login page will come up, but no matter what, it says the username and password are bad. They are correct though, caps lock isn't on, etc. I've cleared the cookies and 1JWH cache and it still does the same thing. The script is on an intranet. One computer that had this issue was fixed 1JWH by using https://computername.company.army.mil instead of just https://computername. But for this computer, both addresses give the same result. So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Script not working from one computer
On Tuesday 10 December 2002 17:11, DL Neil wrote: Hi John, You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? Please check the IE on the offending machine. Does it have security settings that forbid cookies? Check the ipconfig/all settings against other machines/check any contents of HOSTS file (and the other MS one, if used) Check execution of phpinfo() against similar on other/working machines. Is it a plain old login script, or is it one which uses javascript to MD5 the password? If the latter, you may want to check you've enabled javascript. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I wish a robot would get elected president. That way, when he came to town, we could all take a shot at him and not feel too bad. -- Jack Handley */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[2]: [PHP] Script not working from one computer
You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? When it's initially typed in. Please check the IE on the offending machine. Does it have security settings that forbid cookies? No, it's a default install of IE6. I have a check that'll put up an error if cookies are turned off and that's not the error I get. I get the error saying that the username or password didn't match anything in the database. Check the ipconfig/all settings against other machines/check any contents of HOSTS file (and the other MS one, if used) Check execution of phpinfo() against similar on other/working machines. Is it a plain old login script, or is it one which uses javascript to MD5 the password? If the latter, you may want to check you've enabled javascript. It's just a plain log in script. I'm going to troubleshoot it more today and throw in some tracing to the functions to see where everything is going and what the login/password values are all the time. I just haven't had a chance to make it over to that computer yet. I have a feeling it's going to work out to be something stupidly simple... like these problems always do. :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script not working from one computer
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: ...[snip]... Browser's are the same (128bit). It's not a laptop. The web page can pull up You mean, the web browser, right? :) any other external web page correctly. And, I assume pull up external web page means web pages served from the same server where you cannot login? What gets me is that the computer can pull up the log in page. It can pull up another, unprotected page from that web server. But, no matter who tries to log in from that machine, I get a bad username and password, even though they are right. It's like the browser is sending bad data to a script that works fine from every other computer. Anyone else have any other ideas? Have you tried using another browser and see what happens? - E ...[snip]... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Script not working from one computer
John, You mention that it is a login script and that input is rejected. Is it rejected when it is initially typed in, or is it reported as rejected when ensuing pages are served? When it's initially typed in. =do you have multiple 'environments' (eg VHosts or even physical servers) on your PHP/web server? If you run the errant machine against a copy of the script in another 'environment' does the same happen? =can you put a DEBUG line into the code and have the data displayed prior to it leaving the PC/form, and as the login 'result' is being processed/returned to the user? Where does it 'break'? =is there anything silly about the person's login/pswd? Is it just the one person's login that's at issue, or everybody's when they use that particular PC-client? Please check the IE on the offending machine. Does it have security settings that forbid cookies? No, it's a default install of IE6. I have a check that'll put up an error if cookies are turned off and that's not the error I get. I get the error saying that the username or password didn't match anything in the database. =not something dopey like a zero-oh transliteration error, eg passw0rd instead of password? Check the ipconfig/all settings against other machines/check any contents of HOSTS file (and the other MS one, if used) Check execution of phpinfo() against similar on other/working machines. Is it a plain old login script, or is it one which uses javascript to MD5 the password? If the latter, you may want to check you've enabled javascript. It's just a plain log in script. I'm going to troubleshoot it more today and throw in some tracing to the functions to see where everything is going and what the login/password values are all the time. I just haven't had a chance to make it over to that computer yet. I have a feeling it's going to work out to be something stupidly simple... like these problems always do. :) =embarrassingly so! If you're taking this all off a user's say-so, then it sounds like an eyeball job to me... =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[2]: [PHP] Script not working from one computer
I have a feeling it's going to work out to be something stupidly simple... like these problems always do. :) =embarrassingly so! If you're taking this all off a user's say-so, then it sounds like an eyeball job to me... =dn I never did solve it, but it came down to a weird cookie problem. The Session cookie was being set and accepted correctly, but regular cookies would never set. Other web sites could set cookies, but none from this web site were ever written. I don't know if it's because of SSL or what. It's one of those things that worked fine yesterday and now doesn't work and the user didn't do anything. Oh well... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script not working from one computer
Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock on? Is the machine in question set-up on the network correctly, i.e. has it got domain, gateway addresses etc setup - this would only affect it if the Intranet server is set-up to only allow a certain range of IP addresses or doamin/hostnames etc. Browser's are the same (128bit). It's not a laptop. The web page can pull up any other external web page correctly. What gets me is that the computer can pull up the log in page. It can pull up another, unprotected page from that web server. But, no matter who tries to log in from that machine, I get a bad username and password, even though they are right. It's like the browser is sending bad data to a script that works fine from every other computer. Anyone else have any other ideas? ---John Holmes... -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 05 December 2002 14:10 To: php-general Cc: heflinaw Subject: [PHP] Script not working from one computer I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does the typical SELECT to find a match. If it's good, it sets some session variables and redirects to a main page, otherwise redirects back to the login page with an error message. The script works from all computers but one. The login page will come up, but no matter what, it says the username and password are bad. They are correct though, caps lock isn't on, etc. I've cleared the cookies and cache and it still does the same thing. The script is on an intranet. One computer that had this issue was fixed by using https://computername.company.army.mil instead of just https://computername. But for this computer, both addresses give the same result. So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Script not working from one computer
Does a print_r() of the superglobal arrays differ in any significant way when posting the username/password from the troublesome client when compared to the superglobals for a well behaved machine? -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 09 December 2002 16:32 To: M.A.Bond; php-general Cc: heflinaw Subject: Re: [PHP] Script not working from one computer Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock on? Is the machine in question set-up on the network correctly, i.e. has it got domain, gateway addresses etc setup - this would only affect it if the Intranet server is set-up to only allow a certain range of IP addresses or doamin/hostnames etc. Browser's are the same (128bit). It's not a laptop. The web page can pull up any other external web page correctly. What gets me is that the computer can pull up the log in page. It can pull up another, unprotected page from that web server. But, no matter who tries to log in from that machine, I get a bad username and password, even though they are right. It's like the browser is sending bad data to a script that works fine from every other computer. Anyone else have any other ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] Script not working from one computer
Hi, Tuesday, December 10, 2002, 2:31:48 AM, you wrote: Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock 1JWH on? Is the machine in question set-up on the network correctly, i.e. has it 1JWH got domain, gateway addresses etc setup - this would only affect it if the Intranet server is set-up to only allow a certain range of IP addresses or doamin/hostnames etc. 1JWH Browser's are the same (128bit). It's not a laptop. The web page can pull up 1JWH any other external web page correctly. 1JWH What gets me is that the computer can pull up the log in page. It can pull 1JWH up another, unprotected page from that web server. But, no matter who tries 1JWH to log in from that machine, I get a bad username and password, even though 1JWH they are right. It's like the browser is sending bad data to a script that 1JWH works fine from every other computer. 1JWH Anyone else have any other ideas? 1JWH ---John Holmes... -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 05 December 2002 14:10 To: php-general Cc: heflinaw Subject: [PHP] Script not working from one computer I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does 1JWH the typical SELECT to find a match. If it's good, it sets some session 1JWH variables and redirects to a main page, otherwise redirects back to the login page with an error message. The script works from all computers but one. The login page will come up, but no matter what, it says the username and password are bad. They are correct though, caps lock isn't on, etc. I've cleared the cookies and 1JWH cache and it still does the same thing. The script is on an intranet. One computer that had this issue was fixed 1JWH by using https://computername.company.army.mil instead of just https://computername. But for this computer, both addresses give the same result. So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. ---John Holmes... Could it be adding a (NT) domain suffix to the username or something ? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Script not working from one computer
I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does the typical SELECT to find a match. If it's good, it sets some session variables and redirects to a main page, otherwise redirects back to the login page with an error message. The script works from all computers but one. The login page will come up, but no matter what, it says the username and password are bad. They are correct though, caps lock isn't on, etc. I've cleared the cookies and cache and it still does the same thing. The script is on an intranet. One computer that had this issue was fixed by using https://computername.company.army.mil instead of just https://computername. But for this computer, both addresses give the same result. So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. ---John Holmes...
Re: [PHP] Script not working from one computer
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: [snip] So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. [/snip] Well, my magic PHP 8-ball says... Just kidding :) Anyway, here's a long shot: What browser are you using? Encryption is 128bit? If you're using one with 40bit or 56bit(?), I'm sure it won't work against a server with 128bit SSL... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Script not working from one computer
Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock on? Is the machine in question set-up on the network correctly, i.e. has it got domain, gateway addresses etc setup - this would only affect it if the Intranet server is set-up to only allow a certain range of IP addresses or doamin/hostnames etc. Thanks Mark -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 05 December 2002 14:10 To: php-general Cc: heflinaw Subject: [PHP] Script not working from one computer I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does the typical SELECT to find a match. If it's good, it sets some session variables and redirects to a main page, otherwise redirects back to the login page with an error message. The script works from all computers but one. The login page will come up, but no matter what, it says the username and password are bad. They are correct though, caps lock isn't on, etc. I've cleared the cookies and cache and it still does the same thing. The script is on an intranet. One computer that had this issue was fixed by using https://computername.company.army.mil instead of just https://computername. But for this computer, both addresses give the same result. So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php