[horde] Re: enabling mysql sessionhandler?

Niall Young niall at chime.net.au
Tue Dec 9 19:19:16 PST 2003


On Tue, 9 Dec 2003, Niall Young wrote:

> On Mon, 8 Dec 2003 Michael M Slusarz wrote:
>
> > Quoting Niall Young <niall at chime.net.au>:
> >
> > | Can anyone clarify exactly what's required to enable the mysql
> > | sessionhandler?  Are there any docs or guides on this?  I've been
> > | searching for hours and can only find oblique references.
> >
> > | and am getting the following error in my browser:
> > |
> > | Parse error: parse error in .../config/horde.php on line 97
> >
> > In the distributed configuration file, line 97 is as follows:
> > $conf['auth']['driver'] = '';
> >
> > So maybe you should be looking around this line for a parse error (e.g. no
> > terminating ' or ;) instead.
>
> It's unchanged, I'm using imp for login/logout in registry.php  If I
> comment out the sessionhandler stuff everything's working again but

Just to re-iterate - I haven't modified anything near line 97 of
horde.php and if I set sessionhandler type back to 'none' and comment
out the extra params everything is working again and I get no segfaults,
but we're back to random logouts:

> sessions are back to random logouts.  I can actually use the back button
> and continue with the session, so it seems to be there still, I just
> keep being taken to the login screen randomly when browsing webmail.

An strace doesn't show anything glaringly obvious to me:

open("/home/horde/public_html/config/../imp/templates/common-footer.inc", O_RDONLY|O_LARGEFILE) = 7
getcwd("/home/horde/public_html/imp", 4096) = 36
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/horde", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/horde/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/horde/public_html/config", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/horde/public_html/imp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/horde/public_html/imp/templates", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/horde/public_html/imp/templates/common-footer.inc", {st_mode=S_IFREG|0644, st_size=250, ...}) = 0
ioctl(7, SNDCTL_TMR_TIMEBASE, 0xbfff8c3c) = -1 ENOTTY (Inappropriate ioctl for device)
fstat64(7, {st_mode=S_IFREG|0644, st_size=250, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x44635000
read(7, "<?php if (!empty($title)): ?>\n<s"..., 8192) = 250
read(7, "", 4096)                       = 0
read(7, "", 8192)                       = 0
ioctl(7, SNDCTL_TMR_TIMEBASE, 0xbfff7c18) = -1 ENOTTY (Inappropriate ioctl for device)
close(7)                                = 0
munmap(0x44635000, 4096)                = 0
chdir("/")                              = 0
--- SIGSEGV (Segmentation fault) ---

Is there any actual documentation on how a MySQL sessionhandler should be
setup?  Is anyone able to help?

Niall Young                                    Chime Communications Pty Ltd
niall at chime.net.au                            Level 6, 263 Adelaide Terrace
Ph: (+61) 08 9213 1330 / 0408 192 797         Perth, Western Australia 6000

    "Happy Quarter-of-a-century to my big sis Kylie, who turns ?? today"
                                        -- Lauren Metropolis, May 2003




More information about the horde mailing list