add Resource#attachSession