#!/usr/bin/perl use strict; use lib '../lib'; use Continuity; Continuity->new( query_session => 'sid', cookie_session => 0 )->loop; sub main { my ($request) = @_; my $session_id = $request->session_id; $request->print(qq{

Query Session Example

Your session ID is: $session_id
Click here to continue }); $request->next; $request->print(qq{

Query Session Example

Your session ID is: $session_id
As you can see, we are tracking the session using a query variable. It can also be passed through a form POST.
}); $request->next; $request->print(qq{

Query Session Example

Your session ID is: $session_id
Magical, eh? Your session is over now. Click here to get a new one. }); }