Re: [PHP] Using Sessions under Win98/Apache
FYI... I'm using sessions successfully using PHP v4.1.0 on Windows NT. Neil Edward Marczak wrote: * This Message Was Virus Checked With : SAVI 3.57 May 2002 Last Updated 13th May 2002 * On 5/15/02 4:30 PM, SHEETS,JASON (Non-HP-Boise,ex1) [EMAIL PROTECTED] pressed the keys forming the message: Sessions under windows were broken for 4.1.x They were fixed in 4.2.x so you should upgrade. Great - a definitive answer. Thank you. I'll just have to make note of the differences between 4.2.x and older versions. Thanks everyone who sent over tips and suggestions. -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Neil Freeman Design Engineer | | Phone: +44 (0)1420 526600 Fax : +44 (0)1420 23741 | | Email: [EMAIL PROTECTED] | |[EMAIL PROTECTED]| | Web : www.curvedvision.com | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Sessions under Win98/Apache
On 5/16/02 5:17 AM, Neil Freeman [EMAIL PROTECTED] wrote: FYI... I'm using sessions successfully using PHP v4.1.0 on Windows NT. Hurmph. Well, the upgrade to 4.2.x did it for me under 98. I just need to check the rest of my code, though. For now, seems pretty harmless. Thanks, though. -- Ed Marczak [EMAIL PROTECTED] P.S. Are you also using Apache? Or IIS? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using Sessions under Win98/Apache
I've been developing a PHP driven site that will ultimately run under Solaris and Linux - no problems there. But I set up a small development/test environment on my laptop running Win98. Downloaded the PHP binary (v 4.1.2) along with Apache (v 1.3.24) and MySQL. Everything works greatalmost. Sessions aren't working for some reason. Yes, they're enabled in my php.ini file (and running a php_info() confirms that session support is enabled). The odd thing is, is that it will create the 'sess_038d7' file. Just no data goes into it. Yes, I'm running the exact same code against it that I'm running against the Solaris and Linux PHP. Is there something different about the Windows version that I don't know that is causing my sessions to not work? Thanks! -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Sessions under Win98/Apache
You probably want to get 4.2, or 4.2.1 if it's out. How are you registering variables for the session? Is register_globals on or off in your php.ini. If it's off, you register a variables just by using $_SESSION[var] = value; instead of using session_register(var); $var = value; If register globals is on, then use the second method with session_register(). This is all after you call session_start, of course. ---John Holmes... - Original Message - From: Edward Marczak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 12:04 PM Subject: [PHP] Using Sessions under Win98/Apache I've been developing a PHP driven site that will ultimately run under Solaris and Linux - no problems there. But I set up a small development/test environment on my laptop running Win98. Downloaded the PHP binary (v 4.1.2) along with Apache (v 1.3.24) and MySQL. Everything works greatalmost. Sessions aren't working for some reason. Yes, they're enabled in my php.ini file (and running a php_info() confirms that session support is enabled). The odd thing is, is that it will create the 'sess_038d7' file. Just no data goes into it. Yes, I'm running the exact same code against it that I'm running against the Solaris and Linux PHP. Is there something different about the Windows version that I don't know that is causing my sessions to not work? Thanks! -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Sessions under Win98/Apache
On 5/15/02 2:21 PM, 1LT John W. Holmes [EMAIL PROTECTED] pressed the keys forming the message: You probably want to get 4.2, or 4.2.1 if it's out. Didn't think those were considered production quality just yet. How are you registering variables for the session? Is register_globals on or off in your php.ini. Off If it's off, you register a variables just by using $_SESSION[var] = value; instead of using session_register(var); $var = value; Yeah, I'm using $_SESSION[blah] If register globals is on, then use the second method with session_register(). This is all after you call session_start, of course. Of course. Again, this is all code that works perfectly against a setup I have on Solaris and Linux. And again, I'm using a file handler for sessions, and the 'sess_037df7670' file gets created. Just that nothing ends up in it - which is a problem when PHP goes to retrieve a session. Thanks for the response. -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Sessions under Win98/Apache
On 5/15/02 3:47 PM, 1LT John W. Holmes [EMAIL PROTECTED] pressed the keys forming the message: I'm not sure what it could be then. If you try a simple test script, doing nothing but starting a session and setting a value, does it work? No. If that still doesn't work, then definitely upgrade to 4.2.1. The reality is, why should I? I want to match my production environment as closely as possible. Is this working for other people or not (under Win98/WinApache)? Are you saying that sessions never worked under this configuration until v 4.2.1? Load this script up: ? session_start(); if(isset($_SESSION[var])) { echo variable is already set; } else { $_SESSION[var] = one; } echo pClick a href= . $_SERVER[SCRIPT_NAME] . here/a; ? It remembers the variable for the duration of the script. Once the page is reloaded, since the session is never written, I get nothing. I appreciate your help on this. However, my frustration is that it's not my code, it's something with the system setup - which seems right! -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Sessions under Win98/Apache
On 5/15/02 4:30 PM, SHEETS,JASON (Non-HP-Boise,ex1) [EMAIL PROTECTED] pressed the keys forming the message: Sessions under windows were broken for 4.1.x They were fixed in 4.2.x so you should upgrade. Great - a definitive answer. Thank you. I'll just have to make note of the differences between 4.2.x and older versions. Thanks everyone who sent over tips and suggestions. -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php