lots of operation and auth fixes.
This commit is contained in:
parent
1ab3df1f30
commit
150087f703
19 changed files with 71 additions and 68 deletions
|
|
@ -128,7 +128,7 @@ sub paramsHashRef {
|
|||
my $self = shift;
|
||||
unless ($self->{_paramsHashRef}) {
|
||||
my $hash;
|
||||
foreach ($self->session->request->params) {
|
||||
foreach ($self->session->request->param) {
|
||||
$hash->{$_} = $self->process($_);
|
||||
}
|
||||
$self->{_paramsHashRef} = $hash;
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@ sub new {
|
|||
$self->{_var} = $session->db->quickHashRef("select * from userSession where sessionId=".$session->db->quote($sessionId));
|
||||
if ($self->{_var}{expires} && $self->{_var}{expires} < $session->datetime->time()) {
|
||||
$self->end;
|
||||
$self->start(1,$sessionId);
|
||||
} elsif ($self->{_var}{sessionId} ne "") {
|
||||
$self->{_var}{lastPageView} = $session->datetime->time();
|
||||
$self->{_var}{lastIP} = $session->env->get("REMOTE_ADDR");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue