Store session information into variable before using function beforeLogOut. This function used to unset Session.
Store session information into variable before using function beforeLogOut. This function used to unset Session.

thecodingmachine/security.userservice