Revision b8c19cc7
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/Auth.pm | ||
---|---|---|
sub reset {
|
||
my ($self, %params) = @_;
|
||
|
||
# delete $self->{dbh};
|
||
$self->{SESSION} = { };
|
||
$self->{FULL_RIGHTS} = { };
|
||
$self->{RIGHTS} = { };
|
||
... | ... | |
|
||
SL::Auth - Authentication and session handling
|
||
|
||
=head1 FUNCTIONS
|
||
=head1 METHODS
|
||
|
||
=over 4
|
||
|
||
... | ... | |
that actually stores stuff in the database. Neither the various
|
||
setters nor the deleter access the database.
|
||
|
||
=item <save_form_in_session %params>
|
||
=item C<save_form_in_session %params>
|
||
|
||
Stores the content of C<$params{form}> (default: C<$::form>) in the
|
||
session using L</create_unique_sesion_value>.
|
||
... | ... | |
|
||
Returns the unique key under which the form is stored.
|
||
|
||
=item <restore_form_from_session $key, %params>
|
||
=item C<restore_form_from_session $key, %params>
|
||
|
||
Restores the form from the session into C<$params{form}> (default:
|
||
C<$::form>).
|
||
... | ... | |
|
||
Returns C<$self>.
|
||
|
||
=item C<reset>
|
||
|
||
C<reset> deletes every state information from previous requests, but does not
|
||
close the database connection.
|
||
|
||
Creating a new database handle on each request can take up to 30% of the
|
||
pre-request startup time, so we want to avoid that for fast ajax calls.
|
||
|
||
=back
|
||
|
||
=head1 BUGS
|
Auch abrufbar als: Unified diff
Auth: nicht auskommentieren, sondern richtig dokumentieren