Securely store current user id in session