| Conditions | 3 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct() |
||
| 19 | { |
||
| 20 | // always initialize a session |
||
| 21 | Session::init(); |
||
| 22 | |||
| 23 | // check session concurrency |
||
| 24 | Auth::checkSessionConcurrency(); |
||
| 25 | |||
| 26 | // user is not logged in but has remember-me-cookie ? then try to login with cookie ("remember me" feature) |
||
| 27 | if (!Session::userIsLoggedIn() AND Request::cookie('remember_me')) { |
||
| 28 | header('location: ' . Config::get('URL') . 'login/loginWithCookie'); |
||
| 29 | } |
||
| 30 | |||
| 31 | // create a view object to be able to use it inside a controller, like $this->View->render(); |
||
| 32 | $this->View = new View(); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |