[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.53.2.6, 1.53.2.7

Ivan,,, ivan at wavetail.420.am
Wed Nov 7 20:21:36 PST 2007


Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail:/tmp/cvs-serv21579/FS/FS/ClientAPI

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	MyAccount.pm 
Log Message:
add selfservice-session_timeout config

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.53.2.6
retrieving revision 1.53.2.7
diff -u -d -r1.53.2.6 -r1.53.2.7
--- MyAccount.pm	5 Nov 2007 05:27:49 -0000	1.53.2.6
+++ MyAccount.pm	8 Nov 2007 04:21:34 -0000	1.53.2.7
@@ -87,7 +87,8 @@
     $session_id = md5_hex(md5_hex(time(). {}. rand(). $$))
   } until ( ! defined _cache->get($session_id) ); #just in case
 
-  _cache->set( $session_id, $session, '1 hour' );
+  my $timeout = $conf->config('selfservice-session_timeout') || '1 hour';
+  _cache->set( $session_id, $session, $timeout );
 
   return { 'error'      => '',
            'session_id' => $session_id,



More information about the freeside-commits mailing list