title: Is there a way to have a function run when a session is created or expired?
body: <p>I am currently planning an application that requires a function to run whenever a session is created and expires. I'm planning on using something like redis but I am open to other ideas. What i am looking for is a n annotation such as @whenexpires and @whencreated. I know that most of the annotations for sessions are at the class, and notthemethod Thanks in regards.</p>