Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Manage::Website::ViewSession - View contents of a session
#!/usr/bin/perl
use strict; use OpenInteract2::Manage;
my $website_dir = '/home/httpd/mysite'; my $task = OpenInteract2::Manage->new( 'view_session', { website_dir => $website_dir, session_id => shift @ARGV } ); my ( $status ) = $task->execute; print "Session [[$status->{session_id}]]\n", "OK? $status->{is_ok}\n", "$status->{message}\n";
This task displays the contents of a session.
Only one status hashref is returned in the list. It has additional keys:
The ID used to retrieve the session
The message key holds any errors found or the session information as displayed by Data::Dumper.
Copyright (c) 2002-2003 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
Generated from the OpenInteract 1.99_03 source.