Sympa::WWW::Session(3Sympa) | sympa 6.2.40 | Sympa::WWW::Session(3Sympa) |
Sympa::WWW::Session - Web session
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();
$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... }
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.
Parameters:
Returns:
A new instance.
Parameters:
None.
Returns:
A hashref including attributes of instance (see "Attributes").
Confirmation follows two steps:
In both cases session store is cleared.
Anytime when the action submitted by user is determined, This method may be called with response as 'init'. In this case, if action doesn't match with that in session store, session store will be cleared.
Parameters:
TBD.
Sympa::DatabaseManager.
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.
2020-12-10 | 6.2.40 |