NAME

Egg::Plugin::SessionKit::Bind::Cookie - Session ID delivery by Cookie.

SYNOPSIS

use Egg qw/ SessionKit /;

__PACKAGE__->egg_startup(
  .......
  ...
  
  plugin_session => {
    component=> [
      [ 'Base::Module' => { ... } ],
      [ 'Bind::Cookie' => {
        cookie_name   => 'sid',
        cookie_path   => '/',
        cookie_domain => 'www.hoge.domain.name',
        cookie_expires=> '+1d',
        cookie_secure => 1,
        } ],
      qw/ Store::Plain /,
      ],
    },
  );

DESCRIPTION

Session id is handed over by Cookie with the client.

CONFIGRATION

Name of parameter used to refer to Cookie.

PATH that enables reference to Cookie.

Domain name that enables reference to Cookie.

When SSL is communicated, the secure flag is made effective when an effective value is set.

Validity term of Cookie.

You will not set it usually.

METHODS

startup

The setting is checked.

get_bind_data

Session id is received from Cookie.

set_bind_data

It prepares it. bury session id under the response header

SEE ALSO

Egg::Response, Egg::Plugin::SessionKit, Egg::Release,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT

Copyright (C) 2007 by 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.