389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
|
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
|
+
-
-
+
+
|
(define (server:login toppath)
(lambda (toppath)
(set! *db-last-access* (current-seconds)) ;; might not be needed.
(if (equal? *toppath* toppath)
#t
#f)))
;; timeout is in hours
(define (server:get-timeout)
(let ((tmo (configf:lookup *configdat* "server" "timeout")))
(if (and (string? tmo)
(string->number tmo))
(* 60 60 (string->number tmo))
;; (* 3 24 60 60) ;; default to three days
(* 60 60 1) ;; default to one hour
;; (* 60 60 25) ;; default to 25 hours
;;(* 60 60 1) ;; default to one hour
(* 60 60 0.25) ;; default to 0.25 hours
)))
|