#23370 [NEW]: Session data cannot be stored
| From: | sven at nimrod-online dot com | Date: | Sun, 27 Apr 2003 10:48:49 +0000 |
| Subject: | #23370 [NEW]: Session data cannot be stored | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38501@lists.php.net to get a copy of this message | ||
From: sven at nimrod-online dot com
Operating system: Windows 98
PHP version: 4.3.1
PHP Bug Type: Apache2 related
Bug description: Session data cannot be stored
After setting up my Apache 2.0.45 webserver with PHP (php4apache2.dll
module), I only have one problem with PHP.
In the php.ini file, I have set:
'session.save_path = ".;e:/program files/webserver/php/tmp"'
but i also tried:
'session.save_path = e:/program files/webserver/php/tmp'
and more similar values(8 letter names like progra~1, going up directories
instead of giving the full path) but the session storage simply does not
work.
The rest of the session part in php.ini is as following:
'session.save_handler = files
session.use_cookies = 1
; session.use_only_cookies = 1
session.name = SESSION
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_dividend = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = off
session.bug_compat_warn = off
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0'
The warning I get back is:
'<b>Warning</b>: session_start() [<a
href='http://www.php.net/function.session-start'>function.session-start</a>]:
open(/tmp\sess_a1eaccb1acf2e731c362a96de932fe71, O_RDWR) failed: No such
file or directory (2) in <b>E:\program
files\Webserver\www-docs\pcactief\admin\index.php</b> on line <b>8</b><br
/>'
The part about this warning that surprised me most was
'/tmp\sess_a1eaccb1acf2e731c362a96de932fe71', even if I renamed the
directory to /temp or /temporary (in the php.ini file and on my harddisk).
Resetting the server does not work.
Does anyone else have this problem? And how can i solve this?
--
Edit bug report at http://bugs.php.net/?id=23370&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23370&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23370&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23370&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23370&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23370&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23370&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23370&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23370&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23370&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23370&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23370&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23370&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23370&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23370&r=gnused