You can use load_session() to load a saved session into the global session.

The following code sample shows how to load a saved session.

Vim::load_session(session_file => '.visession');

Alternatively, you can load a session by using the object-oriented syntax.

my $service_url = "https://$server/sdk/vimService";
my $vim = Vim->new(service_url => $service_url);
$vim = $vim->load_session(session_file => '.visession');