RESTORING SECURE SESSION