-
- 12 Posts
Hi,
I have just done a fresh install of RC2.1 and am stuck in the install
I am pretty sure I have used RC1 on this server without problems
The error is
Checking if sessions are properly configured: Failed!
System info is
PHP Version 4.3.10
and session info is
session
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_divisor 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
Any help would be appreciated
-
- 1,131 Posts
Try changing session.use_trans_sid to On. It’s likely that the application is looking for a unique transaction ID in the session.
Jeff
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 1,732 Posts
You can try changing the session path if you can.
-
- 1,131 Posts
Or check to make sure that PHP and your web server has permissions to write sessions in the /tmp directory. Else, yeah, change to a different path. My Linux server is set to save sessions in /var/lib/php.
Regarding the session.use_trans_sid, probably best to just leave it off. What this does is allow the session ID to used as part of the URL if cookies aren’t present. In otherwords...if you’re using cookies to keep track of sessions and a visitor has disabled cookies, then PHP will add the session ID to the URL automatically...not a good thing from a security standpoint. It’s enabled on my production server...but this isn’t a big deal since all of my sessions are saved in /var/lib/php anyways.
Quote from: xwisdom at Jun 29, 2005, 03:14 PM
You can try changing the session path if you can.
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 1 Posts
after checking my session files and all the other goodies that come with sessions I believe that there is actually a bug in the install.
On about line 14 there is
// session loop-back tester
if(!isset($_GET[’s’])) {
$_SESSION[’session_test’] = 1;
// I had some problems with sessions when I used headers. This works ok
echo "<html><head><title>Loading...</title><script>window.location.href=’".$_SERVER[’PHP_SELF’]."?s=set’;</script></head><body></body></html>";
exit;
}
I think it should be
// session loop-back tester
$_SESSION[’session_test’] = 1;
if(!isset($_GET[’s’])) {
// I had some problems with sessions when I used headers. This works ok
echo "<html><head><title>Loading...</title><script>window.location.href=’".$_SERVER[’PHP_SELF’]."?s=set’;</script></head><body></body></html>";
exit;
}
because on line 317
// check sessions
echo "<p>Checking if sessions are properly configured: ";
if($_SESSION[’session_test’]!=1 ) {
echo "<span class=’notok’>Failed!</span></p>";
$errors += 1;
} else {
echo "<span class=’ok’>OK!</span></p>";
}
that is where it fails.
At lease this worked for me.
-
- 1,732 Posts
Strider,
by moving the $_SESSION[’session_test’] = 1 line above the if block you make the session test useless.
The statement $_SESSION[’session_test’] = 1 will allways set the session_test variable to 1 and it will allways pass even when the session does not exists
Strider,
Was the installer failing on you? If so, could you post the regulars re: your OS/PHP/MySQL versions. Thanks!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me