Account and permission manager and security log viewer. https://netsyms.biz/apps/managepanel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Session.lib.php 524B

12345678910111213141516171819
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. class Session {
  8. public static function start(User $user) {
  9. $_SESSION['username'] = $user->getUsername();
  10. $_SESSION['uid'] = $user->getUID();
  11. $_SESSION['email'] = $user->getEmail();
  12. $_SESSION['realname'] = $user->getName();
  13. $_SESSION['loggedin'] = true;
  14. }
  15. }