[imp] Session expiring

Ramon Kagan rkagan@yorku.ca
Wed, 6 Feb 2002 11:51:48 -0500 (EST)


Thanks for the sql stuff, I really interested in this.

I'll get to that next week.  For now I have the go ahead to use the url
session handling (I know it sucks but...) for us to cutover for production
next week.

Ramon Kagan
York University, Computing and Network Services
Unix Team -  Intermediate System Administrator
(416)736-2100 #20263
rkagan@yorku.ca

On Wed, 6 Feb 2002, Michael Cochrane wrote:

> A quick way to implement a database session handler is to grab the code from:
> http://gateway.digitaria.com/~chris/php/mysql_session_handler/
> put this in the top of horde/lib/horde.php, if you really want i guess you
> could put this in a different file and just include it somewhere in the top of
> horde.php.
>
> I changed to top line to
>  $SessionTableName = "database.table";
> so i wasn't changing anything in my php.ini and messing with anything that's
> allready working.
>
> The Mysql code for the table that i am using is:
> CREATE TABLE phpsessions (
>   SessionID varchar(32) NOT NULL default '                                ',
>   LastActive int(11) NOT NULL default '0',
>   Data longblob,
>   PRIMARY KEY (SessionID)
> )
>
> Took about 2 mins to copy and paste everything and have it working. It uses the
> mysql defaults from you php.ini. Seems to be working fine here, haven't
> hammered it particularly hard though. Also you should note that 10K-15K of data
> for each session it's out of the ordinary so make sure you database has plenty
> of room to grow.
>
> Hope this might get you working
>
> - Mike
>
>
> Quoting Barry Flanagan <barryf-imp@digiserve.ie>:
>
> > On Tuesday 05 February 2002 20:23, you wrote:
> > > In theory, couldn't one change the session.save_path to an NFS share all
> > > three servers have access to ?
> >
> > We have tried this but it is not really a runner, due to (AFAIK) file locking
> >
> > issues. Database session handling would be the best way to handle this, but
> >
> > any of the db based session stuff in PHP appears to require special code
> > included in each page where sessions are required, and that would require too
> >
> > much reworking of Horde for my liking.
> >
> > Regards,
> >
> > -Barry Flanagan
> >
> > >
> > > Cheers,
> > > Bjorn Swift
> > >
> > > On Tue, Feb 05, 2002 at 01:55:32PM -0500, Ramon Kagan wrote:
> > > > I'm not looking for a performance boot just the removal of spontaneous
> > > > expirations.
> > > >
> > > > Just to note,  I changed to url only 'session accounting' by changing
> > my
> > > > php.ini and I haven't had any problems since.  I would prefer to use
> > > > cokkies since the url's are ugly this way.
> > > >
> > > > Ramon Kagan
> > > > York University, Computing and Network Services
> > > > Unix Team -  Intermediate System Administrator
> > > > (416)736-2100 #20263
> > > > rkagan@yorku.ca
> > > >
> > > > On Tue, 5 Feb 2002, Mike Coughlan wrote:
> > > > > > > How do I set the session to sql?
> > > > >
> > > > > I don't know that it is done that often, or that there is a
> > tremendous
> > > > > performance boost.
> > > > >
> > > > >
> > > > > --
> > > > > IMP mailing list: http://horde.org/imp/
> > > > > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > > > > Frequently Asked Questions: http://horde.org/faq/
> > > > > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> > > >
> > > > --
> > > > IMP mailing list: http://horde.org/imp/
> > > > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > > > Frequently Asked Questions: http://horde.org/faq/
> > > > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> >
> > --
> >
> > -Barry Flanagan
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> >
> >
>
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>



>From eric.rostetter@physics.utexas.edu Date: Wed,  6 Feb 2002 10:54:22 -0600
Return-Path: <eric.rostetter@physics.utexas.edu>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 28457 invoked from network); 6 Feb 2002 16:54:25 -0000
Received: from pcgxmt1.ph.utexas.edu (root@128.83.114.121)
  by clark.horde.org with SMTP; 6 Feb 2002 16:54:25 -0000
Received: (from httpd@localhost)
	by pcgxmt1.ph.utexas.edu (8.9.3/8.9.3) id KAA13692;
	Wed, 6 Feb 2002 10:54:22 -0600
Received: from 128.83.155.179 ( [128.83.155.179])
	as user ericr@localhost by mail.ph.utexas.edu with HTTP;
	Wed,  6 Feb 2002 10:54:22 -0600
Message-ID: <1013014462.3c615fbead5a6@mail.ph.utexas.edu>
Date: Wed,  6 Feb 2002 10:54:22 -0600
From: Eric Jon ROSTETTER <eric.rostetter@physics.utexas.edu>
To: imp@lists.horde.org
Cc: harindra_patel@yahoo.co.in
References: <20020206083424.58394.qmail@web8005.mail.in.yahoo.com>
In-Reply-To: <20020206083424.58394.qmail@web8005.mail.in.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.1-cvs
Subject: Re: [imp] change password for imp 3.0

Quoting harindra patel <harindra_patel@yahoo.co.in>:

> We have following error while testing the change
> passwd from the Web based mail.
> 
> Fatal error:failed opening required 'poppassd.php'
> (include_path='/usr/local/lib/php') in
> /var/www/horde/passwd/main.php on line 51
 
Change the following line in main.php, line 51.  I'll commit this
to the package asap.

51c51
<         require("poppassd.php");
---
>         require( PASSWD_BASE . "poppassd.php");

Eric Jon Rostetter
The Department of Physics
The University of Texas at Austin
Austin, Texas 78712-1081

Office:    RLM 7.126
Telephone: 512-471-5821
Email:	   eric.rostetter@physics.utexas.edu

Fragen Sie nicht was Ihre Kumputer tun koennen,
aber fragen Sie was Sie fur Ihre Kumputer koennen.


>From doc@zwecker.de Date: 06 Feb 2002 18:08:08 +0100
Return-Path: <doc@zwecker.de>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 29728 invoked from network); 6 Feb 2002 17:07:40 -0000
Received: from rzaixsrv2.rrz.uni-hamburg.de (134.100.32.71)
  by clark.horde.org with SMTP; 6 Feb 2002 17:07:40 -0000
Received: from fry.sysctl-office.de (IDENT:FMajPRHeYBhdW8JeQe5rbI1X8YsqfJcK@[134.100.58.70])
	by rzaixsrv2.rrz.uni-hamburg.de (8.11.0/8.11.0) with ESMTP id g16H7cb78888
	for <imp@lists.horde.org>; Wed, 6 Feb 2002 18:07:38 +0100
Received: from localhost (IDENT:6Eu64GS61tKKgGWGaYu/42D0B//GQirc@localhost [127.0.0.1])
	by fry.sysctl-office.de (8.11.6/8.11.2) with ESMTP id g16H88p27691
	for <imp@lists.horde.org>; Wed, 6 Feb 2002 18:08:08 +0100
From: Christophe Zwecker <doc@zwecker.de>
To: imp@lists.horde.org
In-Reply-To: <1012952031.3c606bdfb4608@linux.wg.de>
References: <1012929428.1263.9.camel@dumbo.zwecker.de> 
	<1012952031.3c606bdfb4608@linux.wg.de>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 18:08:08 +0100
Message-Id: <1013015288.22675.12.camel@fry.sysctl-office.de>
Mime-Version: 1.0
Subject: Re: [imp] Imp Path and Date

On Wed, 2002-02-06 at 00:33, Jan Schneider wrote:
> Zitat von Christophe Zwecker <doc@zwecker.de>:
> 
> > Hi,
> > 
> > I use imp3 + horde2 on RH7.1
> > 
> > 
> > it looks fine , except that alle the mails not dated today are dated
> > first of february.
> > 
> > Any idea ?
> 
> Either a buggy c-client or a buggy php. If IMP displays the correct date 
> field in the message view, php is to blame.

hmm, but I use the php from the horde ftp site...



>From chuck@horde.org Date: Wed,  6 Feb 2002 12:16:35 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 30777 invoked from network); 6 Feb 2002 17:17:13 -0000
Received: from h00104bc60b3c.ne.mediaone.net (HELO marina.horde.org) (24.91.196.127)
  by clark.horde.org with SMTP; 6 Feb 2002 17:17:13 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 4707C3C85; Wed,  6 Feb 2002 12:16:35 -0500 (EST)
Received: from 192.168.0.127 ( [192.168.0.127])
	as user chuck@localhost by marina.horde.org with HTTP;
	Wed,  6 Feb 2002 12:16:35 -0500
Message-ID: <1013015795.3c6164f319eb1@marina.horde.org>
Date: Wed,  6 Feb 2002 12:16:35 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
References: <20020206083424.58394.qmail@web8005.mail.in.yahoo.com> <1013014462.3c615fbead5a6@mail.ph.utexas.edu>
In-Reply-To: <1013014462.3c615fbead5a6@mail.ph.utexas.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: Re: [imp] change password for imp 3.0

Quoting Eric Jon ROSTETTER <eric.rostetter@physics.utexas.edu>:

> >         require( PASSWD_BASE . "poppassd.php");

Just FYI, require is a keyword, not a function. Using parentheses isn't 
necessary and can be misleading. See horde/docs/CODING_STANDARDS.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin


>From eric.rostetter@physics.utexas.edu Date: Wed,  6 Feb 2002 11:32:00 -0600
Return-Path: <eric.rostetter@physics.utexas.edu>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 32455 invoked from network); 6 Feb 2002 17:32:05 -0000
Received: from pcgxmt1.ph.utexas.edu (root@128.83.114.121)
  by clark.horde.org with SMTP; 6 Feb 2002 17:32:05 -0000
Received: (from httpd@localhost)
	by pcgxmt1.ph.utexas.edu (8.9.3/8.9.3) id LAA16788
	for imp@lists.horde.org; Wed, 6 Feb 2002 11:32:00 -0600
Received: from 128.83.155.179 ( [128.83.155.179])
	as user ericr@localhost by mail.ph.utexas.edu with HTTP;
	Wed,  6 Feb 2002 11:32:00 -0600
Message-ID: <1013016720.3c61689033468@mail.ph.utexas.edu>
Date: Wed,  6 Feb 2002 11:32:00 -0600
From: Eric Jon ROSTETTER <eric.rostetter@physics.utexas.edu>
To: imp@lists.horde.org
References: <20020206083424.58394.qmail@web8005.mail.in.yahoo.com> <1013014462.3c615fbead5a6@mail.ph.utexas.edu> <1013015795.3c6164f319eb1@marina.horde.org>
In-Reply-To: <1013015795.3c6164f319eb1@marina.horde.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.1-cvs
Subject: Re: [imp] change password for imp 3.0

Quoting Chuck Hagenbuch <chuck@horde.org>:

> Just FYI, require is a keyword, not a function. Using parentheses isn't 
> necessary and can be misleading. See horde/docs/CODING_STANDARDS.
> 
> -chuck

Fixed in my code, will update the distribution asap (probably after lunch).

Eric Jon Rostetter
The Department of Physics
The University of Texas at Austin
Austin, Texas 78712-1081

Office:    RLM 7.126
Telephone: 512-471-5821
Email:	   eric.rostetter@physics.utexas.edu

Fragen Sie nicht was Ihre Kumputer tun koennen,
aber fragen Sie was Sie fur Ihre Kumputer koennen.