[Koha] possible error at staff interface

Anthony Mao maolins at gmail.com
Fri Mar 13 16:34:14 NZDT 2015


Thanks for Indranil's reply.

In this case should Koha Manual 1.2.3.5 timeout change to
1.2.3.5. timeout

Default: 12000000

Asks: Automatically log out users after ___ seconds of inactivity.

Use 'seconds' instead of 'milliseconds'.

2015-03-13 8:25 GMT+08:00 Indranil Das Gupta <indradg at gmail.com>:
> Hi,
>
> On Fri, Mar 13, 2015 at 5:23 AM, Riley Childs <rchilds at cucawarriors.com> wrote:
>> I think this is a doc issue, not a UI/code issue, I recommend you open a ticket
>> at http://bugs.koha-community.org.
>
> @Riley: Nope! Not a bug, the time is actually in seconds! See
> http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6701
>
> @Anthony : Koha 3.4 is an unsupported version. The manual for the
> latest stable release is at
> http://manual.koha-community.org/3.18/en/administration.html
>
> In the latest manual, the timeout syspref is under 1.2.3.4 and NOT
> under 1.2.3.5 as with 3.4 manual.
>
> The relevant code segments are in C4::Auth are in _timeout_syspref()
> and checkauth()
>
> sub _timeout_syspref {
>     my $timeout = C4::Context->preference('timeout') || 600;
>     # value in days, convert in seconds
>     if ($timeout =~ /(\d+)[dD]/) {
>         $timeout = $1 * 86400;
>     };
>     return $timeout;
> }
>
> AND
>
> if ( $lasttime < time() - $timeout ) {
>
> time() is the perl function to return epoch time in seconds. Thus we
> are handling seconds and NOT miliseconds.
>
> hope this clarifies the issue.
> -idg
>
>
> --
> Indranil Das Gupta
>
> Phone : +91-98300-20971
> Blog    : http://indradg.randomink.org/blog
> IRC      : indradg on irc://irc.freenode.net
> Twitter : indradg
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-
> Please exchange editable Office documents only in ODF Format. No other
> format is acceptable. Support Open Standards.
>
> For a free editor supporting ODF, please visit LibreOffice -
> http://www.documentfoundation.org
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha



-- 
Wishing you all the best. . . .


Anthony Mao 毛慶禎
+886 2 29052334 (voice)
+ 886 2 29017405 (FAX)


More information about the Koha mailing list