nitcorn :: Session :: defaultinit
nitcorn :: Session :: is_logged=
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
nitcorn :: Session :: defaultinit
nitcorn :: Session :: is_logged=
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# A server side session
class Session
# Hashed id used both client and server side to identify this `Session`
var id_hash: String is noinit
init
do
loop
var token = generate_token
if sys.sessions.keys.has(token) then continue
sys.sessions[token] = self
self.id_hash = token
break
end
end
end
lib/nitcorn/sessions.nit:31,1--48,3