artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

session invalidation not working


From: Mortimer Cladwell
Subject: session invalidation not working
Date: Tue, 16 Feb 2021 15:40:33 -0500

Hi Nala,

Thanks for v0.5 which is being used below with Guile-3.0.5/Debian10/Postgres12.4

 In my Postgres table sessions I never see sessions.valid=0, always sessions.valid=1, even for sessions that are months old.
 
 I see in artanis/session.scm:
 
 (define (backend:session-destory/db sb sid)
  (let ((mt (map-table-from-DB (session-backend-meta sb))))
    (mt 'set 'Sessions #:valid "0")))

In my table valid is an integer, and you have a note  " (valid integer)))) ; 1 for valid, 0 for expired"  at line 178 confirming integer.
For postgres the update needs to look like:
 
 UPDATE sessions SET valid=0 WHERE sid='df4f759814491a9b85e40202c29fe11a';

Note no quotes around 0. Is that the problem?

In session.scm and oht.scm I see a lot of "destory".  Should that be "destroy"?
 
 Thanks
 Mortimer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]