Validate session ID.

This commit is contained in:
Eitaro Fukamachi 2015-03-22 21:41:30 +09:00
parent 06d0021da7
commit 7106525601

View file

@ -25,6 +25,11 @@
(funcall (state-sid-generator state) env))
(defgeneric extract-sid (state env))
(defmethod extract-sid :around ((state state) env)
(let ((sid (call-next-method)))
(when (and sid
(funcall (state-sid-validator state) sid))
sid)))
(defgeneric expire-state (state sid res options))