* New: session management (autosave state when logout or shutdown)