In the code synopsis, this line:
enable "Session::Cookie";
Must be replaced by this line:
enable "Session::Cookie", secret => 'cookie_secret';
And the following lines should be added to the end of the app subroutine for ease-of-understanding:
# [ HTTP status code, HTTP header, HTTP content ]
return [ 200, [ 'Content-Type' => 'text/html' ], \@out ];
In the code synopsis, this line:
Must be replaced by this line:
And the following lines should be added to the end of the app subroutine for ease-of-understanding: