allow NULL lastip for sessions to support CLI use