fixed a bug that i created earlier today
added burst protection to page layouts to prevent slashdotting
This commit is contained in:
parent
fcbdb06af8
commit
d272e7de58
5 changed files with 37 additions and 6 deletions
|
|
@ -225,8 +225,10 @@ Session id will be generated if not specified. In almost every case you should l
|
|||
|
||||
sub start {
|
||||
my $self = shift;
|
||||
my $userId = shift || 1;
|
||||
my $sessionId = shift || $self->session->id->generate;
|
||||
my $userId = shift;
|
||||
$userId = 1 if ($userId eq "");
|
||||
my $sessionId = shift;
|
||||
$sessionId = $self->session->id->generate if ($sessionId eq "");
|
||||
$self->{_var} = {
|
||||
expires=>$self->session->datetime->time() + $self->session->setting->get("sessionTimeout"),
|
||||
lastPageView=>$self->session->datetime->time(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue