changed session id variable to be session_key