The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::Plugin::Session - Plugin for session.

SYNOPSIS

  package MyApp
  use Egg qw/ Session /;

  # The session object of default is acquired.
  my $session= $e->session;
  
  # The object is acquired specifying the label of the session.
  my $session= $e->session('session_label');

DESCRIPTION

It is a plugin that conveniently makes Egg::Model::Session available only a little.

METHODS

session ([LABEL_NAME])

The session object is returned.

The one that default with Egg::Model::Session when LABEL_NAME is omitted and has been treated is returned.

  my $s= $e->session;

When LABEL_NAME is specified, the object of correspondence is returned.

  my $s= $e->session('label_name');

If it is a label name that starts by 'session::', the first part can be omitted.

  # For instance, if it is 'Session::myname' ...
  my $s= $e->session('myname');

SEE ALSO

Egg::Release, Egg::Model::Session,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.