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


Egg-Plugin-SessionKit documentation  | view source Contained in the Egg-Plugin-SessionKit distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

METHODS

Top

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

Top

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

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Plugin-SessionKit documentation  | view source Contained in the Egg-Plugin-SessionKit distribution.