diff --git a/Core/Sessions/Session.st b/Core/Sessions/Session.st index 1f3653b..b24c4a0 100644 --- a/Core/Sessions/Session.st +++ b/Core/Sessions/Session.st @@ -49,6 +49,7 @@ IliadObject subclass: Session [ initialize [ super initialize. + expired := false. self setCreatedTimestamp; setRandomId ] @@ -343,7 +344,7 @@ IliadObject subclass: Session [ (DateTime now asSeconds - self modifiedTimestamp asSeconds > self expirySeconds) ifTrue: [ self expire]. - ^self expired + ^expired ] isNew [ @@ -379,11 +380,6 @@ IliadObject subclass: Session [ expired := true ] - expired [ - - ^expired ifNil: [expired := false] - ] - setRandomId [ ^self id: Id new