Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8c19cc7

Von Sven Schöling vor mehr als 9 Jahren hinzugefügt

  • ID b8c19cc7c55513f4839864b2a4e41d8484896452
  • Vorgänger 001155e4
  • Nachfolger f9fdf190

Auth: nicht auskommentieren, sondern richtig dokumentieren

Unterschiede anzeigen:

SL/Auth.pm
44 44
sub reset {
45 45
  my ($self, %params) = @_;
46 46

  
47
#   delete $self->{dbh};
48 47
  $self->{SESSION}            = { };
49 48
  $self->{FULL_RIGHTS}        = { };
50 49
  $self->{RIGHTS}             = { };
......
1261 1260

  
1262 1261
SL::Auth - Authentication and session handling
1263 1262

  
1264
=head1 FUNCTIONS
1263
=head1 METHODS
1265 1264

  
1266 1265
=over 4
1267 1266

  
......
1311 1310
that actually stores stuff in the database. Neither the various
1312 1311
setters nor the deleter access the database.
1313 1312

  
1314
=item <save_form_in_session %params>
1313
=item C<save_form_in_session %params>
1315 1314

  
1316 1315
Stores the content of C<$params{form}> (default: C<$::form>) in the
1317 1316
session using L</create_unique_sesion_value>.
......
1325 1324

  
1326 1325
Returns the unique key under which the form is stored.
1327 1326

  
1328
=item <restore_form_from_session $key, %params>
1327
=item C<restore_form_from_session $key, %params>
1329 1328

  
1330 1329
Restores the form from the session into C<$params{form}> (default:
1331 1330
C<$::form>).
......
1336 1335

  
1337 1336
Returns C<$self>.
1338 1337

  
1338
=item C<reset>
1339

  
1340
C<reset> deletes every state information from previous requests, but does not
1341
close the database connection.
1342

  
1343
Creating a new database handle on each request can take up to 30% of the
1344
pre-request startup time, so we want to avoid that for fast ajax calls.
1345

  
1339 1346
=back
1340 1347

  
1341 1348
=head1 BUGS

Auch abrufbar als: Unified diff