[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.62, 1.63
Ivan,,,
ivan at wavetail.420.am
Wed Nov 7 20:21:31 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail:/tmp/cvs-serv21577/FS/FS/ClientAPI
Modified Files:
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.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- MyAccount.pm 5 Nov 2007 05:27:43 -0000 1.62
+++ MyAccount.pm 8 Nov 2007 04:21:29 -0000 1.63
@@ -88,7 +88,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