Quoting Jonathan Angliss ([EMAIL PROTECTED]): > > What I do notice is that on the [EMAIL PROTECTED], there's all these sess_* > > files in /tmp, none of those appear on my own server. > This here is likely to be your issue... for some reason, your session > files aren't being created, and because they're not being created, we > cannot store important information about your session.
That would be the logic explanation, right? :) But then explain this. I also run Gallery, the popular photo-gallery tool, which is also completely written in PHP. This tool *does* write sess_* files to disk. So this rules out PHP from not storing it's sessions to disk, right? Or maybe Gallery has it's own functions for storing sessions? > > I copied the php.ini from [EMAIL PROTECTED] to [EMAIL PROTECTED], restarted > > apache, nothing changed. > Okay, that's a start. Have you checked the php.ini file? Find > session.save_path make sure there is no ; in front, set it to, for > example, /tmp. Make sure apache (wwwdata ?) has write permissions to > that folder, restart apache again. Now it is set. To /tmp, /tmp has the correct permissions. (drwxrwxrwt 4 root root). Still not working. :( > You might want to check your error logs as well. If that doesn't > help, try editing the php.ini file again, and changing error_reporting > to E_ALL, and log_errors to on, and restart apache again, see if you > get any errors in the log files. Set that already, but nothing appears. The thing is, the PHP seems fine, it logs in and all, without any problems, discovers that user_logged_in isn't registered with the session and displays the 'You need to log in!' page like it should. There are no PHP errors, the variables just aren't registered. > session_start(); > session_write_close(); > Save it as test.php, and open it once, then hit the refresh button on > your browser. The message at the top should change. Thanks a lot! I tried to figure it out myself (some PHP knowledge won't hurt :P), my tests gave the same results as yours. It doesn't change. So we can conclude that PHP isn't saving it's sessions, but it's not logging any messages either. I'm 100% sure www-data has access to /tmp to write session information. And the weirdest thing is, the exact same version of PHP, with exactly the same way of compiling (the same binary distributed php package) is running on another server, and working just fine with exactly the same version of SquirrelMail. I'm really at a loss here... Thanks, Sander. -- | It ain't the jeans that make your butt look big | 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
