Where's the session_start()? You need it on every page that is gonna use session vars I think.. Rich -----Original Message----- From: Antonello Oliveri [mailto:[EMAIL PROTECTED]] Sent: 24 September 2002 18:27 To: [EMAIL PROTECTED] Subject: [PHP-WIN] session under windows
I've istalled PHP ver. 4.2.3 on two Windows98SE machines and on a WindowsXP machine all running PWS 4.0 and/or Apache 1.3.22. Sessions seem not work. correcly. PHP write the file ss_xxxxxxxxxxxxxxxxxxxxxxxx the first time and then it' doesn't update it and variables registered are not rescued and initializad to the correct value, in other words they are not setted. I tried different configuration of the php.ini according with directives from www.php.net . and giving ( to be sure ) to run the different examples about session publishet on the official site. This is the content of the Session section: [Session] session.save_handler=user session.save_path=C:\windows\temp session.use_cookies=1 session.name=PHPSESSID session.auto_start=1 session.cookie_lifetime=0 session.cookie_path=/ session.cookie_domain= session.serialize_handler=php session.gc_probability=1 session.gc_maxlifetime=1440 session.referer_check= session.entropy_length=0 session.entropy_file= session.cache_limiter=nocache session.cache_expire=1 session.use_trans_sid=1 url_rewriter.tags="a=href,area=href,frame=src,input=src,form=fakeentry" Alternative checked and unckecked track_vars and register_globals directives without any results.... this simple code: <?php if (!session_is_registered('count')) { session_register("count"); $count = 0; } else { $count++; } ?> working perfectly under RedHatLinux7.3 with 4.1.x PHP doesn't work on any Windows platform I tested.... ( the page is blank ).. I'm thinking it's most probably a bugs or a undocumented features for windows...but it makes de-facto unusable PHP on windows.. Some ideas ? Some particular attention o tricks for configuring php.ini .... some directives in http.conf ? some workaround for PWS4.0...or BUG?...or I'm stupid ? ( another most valuable choose ) Thanks in advance, PS:Apache load PHP as module ... PWS use PHP as CGI -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php