Session Handling php changes - Was RE: [imp] Session Handling viaMysql

Nigel Cass N.Cass@Hull.ac.uk
Thu, 12 Sep 2002 15:35:49 +0100


I'm using the RELENG versions of Horde,Imp and Turba.

I was planning to just use an include statement at the top of the
relevant php files. I have my session handler php script in horde/config
and was hoping to be able to use a line like.

Include HORDE_BASE . '/config/handler.php'; (note that handler.php
defines the functions and then calls session_set_save_handler()

What I am really really unsure of is which php files I have to put this
include line into. And where if at all I might have to call
session_set_save_handler() again.

Can you advise?

Apologies for asking questions about RELENG as I realise that things are
massively different in HEAD. However the PTB aren't happy with us using
HEAD.

N.

> -----Original Message-----
> From: imp-bounces@lists.horde.org [mailto:imp-bounces@lists.horde.org]
On
> Behalf Of Chuck Hagenbuch
> Sent: 12 September 2002 14:50
> To: imp@lists.horde.org
> Subject: Re: Session Handling php changes - Was RE: [imp] Session
Handling
> viaMysql
> 
> Quoting Nigel Cass <N.Cass@Hull.ac.uk>:
> 
> > I would be most grateful if someone could explain which php scripts
I
> > would definitely need to include the custom session functions within
and
> > at which points I would need to call the session_set_save_handler()
> > function. I have looked through the scripts and I "guess" that I
could
> > get away with including it at the beginning of horde/login.php and
> > imp/login.php - but I'm not very knowledgable about php programming
and
> > I have almost certainly missed something obvious.
> 
> I don't remember what version of IMP you're using, but there is a
> SessionHandler class in Horde HEAD that you can model your changes
after.
> Most people don't actually need code changes, and just use a
prepend_file.
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> "After a few minutes the most aromatic and nice smelling Italian
coffee
>  will come out of the exhaustpipe." - Our stove-top espresso pot
> 
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org