> On 8/23/05, Tomas Kuliavas <[EMAIL PROTECTED]> wrote:
>> > Hi
>> >
>> > I want a central session storage for all SquirrelMail Servers and
>> > tried using a MySQL database and the PHP Class from this address:
>> > http://www.zend.com/zend/spotlight/code-gallery-wade8.php
>> >
>> > Further, I use:
>> >   - SquirrelMail 1.4.5
>> >   - Apache 2.0.54
>> >   - PHP 4.4.0
>> >
>> > To activate the new session handler, I tried this two ways:
>> >
>> > - Use auto_prepend:
>> > http://www.squirrelmail.org/wiki/en_US/SessionsInDatabase
>> > - Tweak globals.inc:
>> > http://sourceforge.net/mailarchive/message.php?msg_id=11599608
>> >
>> > After successfully logging in, SM stops and reports this error:
>> >
>> > PHP Fatal error:  session_register(): Failed to initialize storage
>> > module: user (path: /tmp) in
>> > /usr/local/www/smtest/functions/global.php on line 151
>> >
>> > It is a brand new SquirrelMail, only the IMAP settings have been
>> > changed. No plugins.
>> >
>> > It seems that SquirrelMail is resetting the new Session handler, but I
>> > cannot find out where.  There is only one session_start() and
>> > session_destroy() is never called. I searched the web and the List
>> > archives, but could find no evidence. Maybe somebody on this list
>> > could bring up such a configurations and is willing to give me some
>> > directions.
>>
>> SessionInDatabase instructions are tested with adodb session handling
>> functions and php 4.3.10. Debian Sarge. They work if plugins don't load
>> strings.php before globals.php or before include/validate.php.
>>
>> Try using zend.com example without session_start() call.
>
> That solved the problem! Thanks. But it produces another problem: What
> if I need values from the session in the preprend file?

add session handler to functions/global.php before session_is_active() call.

check session key or other data inside session_is_active() or after
function starts session.

if you run 1.5.1cvs, check other session_start() calls.



-------------------------------------------------------
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

Reply via email to