save session as resource