From: Jason M. <ja...@st...> - 2002-08-09 16:25:14
|
David W Smith said: > Hi, > > I know this is a well travelled issue, that is, after clicking the > 'login' button the below message is received: > > 'You must be logged in to access this page.' > > but has anyone seen and/or overcome this issue with the following setup: > > Squirrelmail 1.2.7 > Solaris 8 > Apache 2.0.39 > Openssl > PHP 4.2.2 (as a DSO) > mod_perl 2.0 > > I've tried what is suggested at: 'www.squirrelmail.org/wiki/LoginError'. > As well as having trawled the internet. I did find a mention of a > 'PHPSES' cookie with re to Squirrelmail and PHP 4.2.x. I've tried with > 'register_globals' off and on. > > Any ideas/tips/fixes appreciated. > > David Smith David, There is a known problem with Apache 2 and SM. From what I can tell when a successful login occurs and SM loads the webmail.php frameset a call is made to a function called is_logged_in(). This function checks your login status by looking for a value in the session. The problem is that on Apache 2 the session cookie is not being set in time, so the user gets logged out right away. If you then immediately return to the login page and login again you should then get logged in because the session cookie now exists. I believe this to be a bug (or 'feature') in Apache2/PHP as its behavior in this regard is different than 1.3.26. If you do not get logged in the second time then there is a problem with the SM configuration. HTH \___ Jason Munro \___ AIM:jmunr0 \__ ja...@st... \__ http://www.sunflower.com/~jmunro/ |