Skip to Content.
Sympa Menu

Documentation for Sympa

NAME

Sympa::WWW::Session - Web session

SYNOPSIS

use Sympa::WWW::Session;

my $session = Sympa::WWW::Session->new($robot,
    {cookie => Sympa::WWW::Session::get_session_cookie($ENV{'HTTP_COOKIE'})}
);
$session->renew();
$session->store();

Confirmation

$session->confirm_action($action, 'init');

sub do_myaction {

    # Validate arguments...

    $param->{arg} = $arg;
    my $next_action = $session->confirm_action($action, $response,
        $arg, $previous_action);
    return $next_action unless $next_action eq '1';

    # Process action...

}

DESCRIPTION

Sympa::WWW::Session provides web session for Sympa web interface. HTTP cookie is required to determine users. Session store is used to keep users’ personal data.

Methods

Functions

Attributes

TBD.

SEE ALSO

Sympa::DatabaseManager.

HISTORY

SympaSession appeared on Sympa 5.4a3.

It was renamed to Sympa::Session on Sympa 6.2a.41, then Sympa::WWW::Session on Sympa 6.2.26.

“confirm_action” method was added on Sympa 6.2.17.

Top of Page