Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session errors with a new PHP installation 1

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
I just installed a new version of PHP (trashing everything from the last) on WinXP. I am now getting session errors:

Warning: session_start() [function.session-start]: open(/tmp\sess_e8fd98e89eedec582b587584ec7a24a2, O_RDWR) failed: No such file or directory (2) in C:\WebDocs\session.php on line 3

The script was:
<?php

session_start();
if (!$PHPSESSID) {
session_register('pagemenu');
} else if (!$pagemenu) {
session_register('pagemenu');
}

$pagemenu=$newpagemenu;
?>


This page worked before so I am certain the problem is due to a misconfiguration of the new installation. What did I screw up?

phpinfo for Sessions is:

Session Support enabled
Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_dividend 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
 
Thanks sleipnir214 - you replied faster than it took me to scroll through php.ini and find it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top