Ignore:
Timestamp:
Jan 5, 2014, 4:28:51 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Logged user state remade to use memory table to avoid offten writes to storage. Memory table lose their content if mysql server is restarted. So UserTrace still keep user information but table is only updated on login or logout. Login timeout is managed by UserOnline table.
  • Added: Ability to login permanently. Session will not timeout after short time. List of online users will be not affected as it use own timeout check.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/FrontPage/FrontPage.php

    r691 r712  
    3636                        if(array_key_exists('LoginUser', $_POST) and array_key_exists('LoginPass', $_POST))
    3737                        {
    38                                 $this->System->User->Login($_POST['LoginUser'], $_POST['LoginPass']);
     38                                if(array_key_exists('LoginUser', $_POST)) $StayLogged = true;
     39                                  else $StayLogged = false;
     40                                $this->System->User->Login($_POST['LoginUser'], $_POST['LoginPass'], $StayLogged);
    3941                                if($this->System->User->Role == LICENCE_ANONYMOUS)
    4042                                {
Note: See TracChangeset for help on using the changeset viewer.