The session contains the users private key. If you close it directly after authentication the key is gone, or did I miss something?