Updated sessions to use session keys