change SID to var session_id