Restore session

Signed-off-by: Leonid Kuznetsov <leokuzn@gmail.com>