They are the same physical server using the same php.ini.... Just different "logical" web servers set up in IIS5. In otherwords, each webserver on the system has it's own IP address.
-----Original Message----- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:19 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set to =1 on the good server and aren't doing a session_start(), that could do it I think There are a bunch of other Session related parameters in PHP.INI.. Default timeout value.. If that's set too low, the session might vaporize before you get a chance to see the info, etc. Good luck! -TG > -----Original Message----- > From: Jeff McKeon [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 28, 2004 7:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Sessions not working. > > > Pulling my hair out here. > > I've got an IIS5 webserver running a php website just fine. > > I created another web for a dev version of the first website. > Installed > PHP ect... > When I load up the old websites files on the new site sessions won't > work on the new site. > > For some reason on the new site's phpinfo.php page, there is no > HTTP_COOKIE variable set under the "environmental" section. > > Also, under the PHP Variables section, there is no > _REQUEST["PHPSESSID"] > or _COOKIE["PHPSESSID"] variable. > > What have I missed!??? > > Here is a section of the phpinfo() for both sites. > > Good Site: > > Environment > Variable Value > ALLUSERSPROFILE C:\Documents and Settings\All Users > CommonProgramFiles C:\Program Files\Common Files > COMPUTERNAME WS02TC07927 > ComSpec C:\WINNT\system32\cmd.exe > CONTENT_LENGTH 0 > GATEWAY_INTERFACE CGI/1.1 > HTTPS off > HTTP_ACCEPT */* > HTTP_ACCEPT_LANGUAGE en-us > HTTP_CONNECTION Keep-Alive > HTTP_HOST opsup.telaurus.net > HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > HTTP_COOKIE PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f > HTTP_ACCEPT_ENCODING gzip, deflate > INSTANCE_ID 3 > LOCAL_ADDR 10.16.1.21 > NUMBER_OF_PROCESSORS 1 > Os2LibPath C:\WINNT\system32\os2\dll; > OS Windows_NT > Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem > PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > PATH_INFO /phpinfo.php > PATH_TRANSLATED C:\Inetpub\wwwOpSup\phpinfo.php > PROCESSOR_ARCHITECTURE x86 > PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel > PROCESSOR_LEVEL 6 > PROCESSOR_REVISION 080a > ProgramFiles C:\Program Files > REMOTE_ADDR 10.16.2.55 > REMOTE_HOST 10.16.2.55 > REQUEST_METHOD GET > SCRIPT_NAME /phpinfo.php > SERVER_NAME opsup.telaurus.net > SERVER_PORT 80 > SERVER_PORT_SECURE 0 > SERVER_PROTOCOL HTTP/1.1 > SERVER_SOFTWARE Microsoft-IIS/5.0 > SystemDrive C: > SystemRoot C:\WINNT > TEMP C:\WINNT\TEMP > TMP C:\WINNT\TEMP > USERPROFILE C:\Documents and Settings\NetShowServices > windir C:\WINNT > > > PHP Variables > Variable Value > _REQUEST["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f > _COOKIE["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f > _SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users > _SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files > _SERVER["COMPUTERNAME"] WS02TC07927 > _SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe > _SERVER["CONTENT_LENGTH"] 0 > _SERVER["GATEWAY_INTERFACE"] CGI/1.1 > _SERVER["HTTPS"] off > _SERVER["HTTP_ACCEPT"] */* > _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us > _SERVER["HTTP_CONNECTION"] Keep-Alive > _SERVER["HTTP_HOST"] opsup.telaurus.net > _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT > 5.1) > _SERVER["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f > _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate > _SERVER["INSTANCE_ID"] 3 > _SERVER["LOCAL_ADDR"] 10.16.1.21 > _SERVER["NUMBER_OF_PROCESSORS"] 1 > _SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll; > _SERVER["OS"] Windows_NT > _SERVER["Path"] > C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem > _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > _SERVER["PATH_INFO"] /phpinfo.php > _SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php > _SERVER["PROCESSOR_ARCHITECTURE"] x86 > _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10, > GenuineIntel > _SERVER["PROCESSOR_LEVEL"] 6 > _SERVER["PROCESSOR_REVISION"] 080a > _SERVER["ProgramFiles"] C:\\Program Files > _SERVER["REMOTE_ADDR"] 10.16.2.55 > _SERVER["REMOTE_HOST"] 10.16.2.55 > _SERVER["REQUEST_METHOD"] GET > _SERVER["SCRIPT_NAME"] /phpinfo.php > _SERVER["SERVER_NAME"] opsup.telaurus.net > _SERVER["SERVER_PORT"] 80 > _SERVER["SERVER_PORT_SECURE"] 0 > _SERVER["SERVER_PROTOCOL"] HTTP/1.1 > _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0 > _SERVER["SystemDrive"] C: > _SERVER["SystemRoot"] C:\\WINNT > _SERVER["TEMP"] C:\\WINNT\\TEMP > _SERVER["TMP"] C:\\WINNT\\TEMP > _SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices > _SERVER["windir"] C:\\WINNT > _SERVER["PHP_SELF"] /phpinfo.php > _SERVER["argv"] Array > ( > ) > > _SERVER["argc"] 0 > _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users > _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files > _ENV["COMPUTERNAME"] WS02TC07927 > _ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe > _ENV["CONTENT_LENGTH"] 0 > _ENV["GATEWAY_INTERFACE"] CGI/1.1 > _ENV["HTTPS"] off > _ENV["HTTP_ACCEPT"] */* > _ENV["HTTP_ACCEPT_LANGUAGE"] en-us > _ENV["HTTP_CONNECTION"] Keep-Alive > _ENV["HTTP_HOST"] opsup.telaurus.net > _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT > 5.1) > _ENV["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f > _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate > _ENV["INSTANCE_ID"] 3 > _ENV["LOCAL_ADDR"] 10.16.1.21 > _ENV["NUMBER_OF_PROCESSORS"] 1 > _ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll; > _ENV["OS"] Windows_NT > _ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem > _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > _ENV["PATH_INFO"] /phpinfo.php > _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php > _ENV["PROCESSOR_ARCHITECTURE"] x86 > _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10, > GenuineIntel > _ENV["PROCESSOR_LEVEL"] 6 > _ENV["PROCESSOR_REVISION"] 080a > _ENV["ProgramFiles"] C:\\Program Files > _ENV["REMOTE_ADDR"] 10.16.2.55 > _ENV["REMOTE_HOST"] 10.16.2.55 > _ENV["REQUEST_METHOD"] GET > _ENV["SCRIPT_NAME"] /phpinfo.php > _ENV["SERVER_NAME"] opsup.telaurus.net > _ENV["SERVER_PORT"] 80 > _ENV["SERVER_PORT_SECURE"] 0 > _ENV["SERVER_PROTOCOL"] HTTP/1.1 > _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0 > _ENV["SystemDrive"] C: > _ENV["SystemRoot"] C:\\WINNT > _ENV["TEMP"] C:\\WINNT\\TEMP > _ENV["TMP"] C:\\WINNT\\TEMP > _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices > _ENV["windir"] C:\\WINNT > > BAD site: > > Environment > Variable Value > ALLUSERSPROFILE C:\Documents and Settings\All Users > CommonProgramFiles C:\Program Files\Common Files > COMPUTERNAME WS02TC07927 > ComSpec C:\WINNT\system32\cmd.exe > CONTENT_LENGTH 0 > GATEWAY_INTERFACE CGI/1.1 > HTTPS off > HTTP_ACCEPT */* > HTTP_ACCEPT_LANGUAGE en-us > HTTP_CONNECTION Keep-Alive > HTTP_HOST opsup_dev.telaurus.net > HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > HTTP_ACCEPT_ENCODING gzip, deflate > INSTANCE_ID 6 > LOCAL_ADDR 10.16.1.24 > NUMBER_OF_PROCESSORS 1 > Os2LibPath C:\WINNT\system32\os2\dll; > OS Windows_NT > Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem > PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > PATH_INFO /phpinfo.php > PATH_TRANSLATED C:\Inetpub\wwwOpSupDev\phpinfo.php > PROCESSOR_ARCHITECTURE x86 > PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 10, GenuineIntel > PROCESSOR_LEVEL 6 > PROCESSOR_REVISION 080a > ProgramFiles C:\Program Files > REMOTE_ADDR 10.16.2.55 > REMOTE_HOST 10.16.2.55 > REQUEST_METHOD GET > SCRIPT_NAME /phpinfo.php > SERVER_NAME opsup_dev.telaurus.net > SERVER_PORT 80 > SERVER_PORT_SECURE 0 > SERVER_PROTOCOL HTTP/1.1 > SERVER_SOFTWARE Microsoft-IIS/5.0 > SystemDrive C: > SystemRoot C:\WINNT > TEMP C:\WINNT\TEMP > TMP C:\WINNT\TEMP > USERPROFILE C:\Documents and Settings\NetShowServices > windir C:\WINNT > > > PHP Variables > Variable Value > _SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users > _SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files > _SERVER["COMPUTERNAME"] WS02TC07927 > _SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe > _SERVER["CONTENT_LENGTH"] 0 > _SERVER["GATEWAY_INTERFACE"] CGI/1.1 > _SERVER["HTTPS"] off > _SERVER["HTTP_ACCEPT"] */* > _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us > _SERVER["HTTP_CONNECTION"] Keep-Alive > _SERVER["HTTP_HOST"] opsup_dev.telaurus.net > _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT > 5.1) > _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate > _SERVER["INSTANCE_ID"] 6 > _SERVER["LOCAL_ADDR"] 10.16.1.24 > _SERVER["NUMBER_OF_PROCESSORS"] 1 > _SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll; > _SERVER["OS"] Windows_NT > _SERVER["Path"] > C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem > _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > _SERVER["PATH_INFO"] /phpinfo.php > _SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php > _SERVER["PROCESSOR_ARCHITECTURE"] x86 > _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10, > GenuineIntel > _SERVER["PROCESSOR_LEVEL"] 6 > _SERVER["PROCESSOR_REVISION"] 080a > _SERVER["ProgramFiles"] C:\\Program Files > _SERVER["REMOTE_ADDR"] 10.16.2.55 > _SERVER["REMOTE_HOST"] 10.16.2.55 > _SERVER["REQUEST_METHOD"] GET > _SERVER["SCRIPT_NAME"] /phpinfo.php > _SERVER["SERVER_NAME"] opsup_dev.telaurus.net > _SERVER["SERVER_PORT"] 80 > _SERVER["SERVER_PORT_SECURE"] 0 > _SERVER["SERVER_PROTOCOL"] HTTP/1.1 > _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0 > _SERVER["SystemDrive"] C: > _SERVER["SystemRoot"] C:\\WINNT > _SERVER["TEMP"] C:\\WINNT\\TEMP > _SERVER["TMP"] C:\\WINNT\\TEMP > _SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices > _SERVER["windir"] C:\\WINNT > _SERVER["PHP_SELF"] /phpinfo.php > _SERVER["argv"] Array > ( > ) > > _SERVER["argc"] 0 > _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users > _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files > _ENV["COMPUTERNAME"] WS02TC07927 > _ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe > _ENV["CONTENT_LENGTH"] 0 > _ENV["GATEWAY_INTERFACE"] CGI/1.1 > _ENV["HTTPS"] off > _ENV["HTTP_ACCEPT"] */* > _ENV["HTTP_ACCEPT_LANGUAGE"] en-us > _ENV["HTTP_CONNECTION"] Keep-Alive > _ENV["HTTP_HOST"] opsup_dev.telaurus.net > _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT > 5.1) > _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate > _ENV["INSTANCE_ID"] 6 > _ENV["LOCAL_ADDR"] 10.16.1.24 > _ENV["NUMBER_OF_PROCESSORS"] 1 > _ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll; > _ENV["OS"] Windows_NT > _ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem > _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > _ENV["PATH_INFO"] /phpinfo.php > _ENV["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSupDev\\phpinfo.php > _ENV["PROCESSOR_ARCHITECTURE"] x86 > _ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10, > GenuineIntel > _ENV["PROCESSOR_LEVEL"] 6 > _ENV["PROCESSOR_REVISION"] 080a > _ENV["ProgramFiles"] C:\\Program Files > _ENV["REMOTE_ADDR"] 10.16.2.55 > _ENV["REMOTE_HOST"] 10.16.2.55 > _ENV["REQUEST_METHOD"] GET > _ENV["SCRIPT_NAME"] /phpinfo.php > _ENV["SERVER_NAME"] opsup_dev.telaurus.net > _ENV["SERVER_PORT"] 80 > _ENV["SERVER_PORT_SECURE"] 0 > _ENV["SERVER_PROTOCOL"] HTTP/1.1 > _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0 > _ENV["SystemDrive"] C: > _ENV["SystemRoot"] C:\\WINNT > _ENV["TEMP"] C:\\WINNT\\TEMP > _ENV["TMP"] C:\\WINNT\\TEMP > _ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices > _ENV["windir"] C:\\WINNT > > Jeff McKeon > IT Manager > Telaurus Communications LLC > [EMAIL PROTECTED] > (973) 889-8990 ex 209 > > ***The information contained in this communication is confidential. It > is intended only for the sole use of the recipient named above and may > be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution > or copying of this communication, or any of its contents or > attachments, > is expressly prohibited. If you have received this communication in > error, please re-send it to the sender and delete the > original message, > and any copy of it, from your computer system. Thank You.*** > > -- > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php