iusersession.php 575 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. *
  8. */
  9. namespace OCP;
  10. /**
  11. * User session
  12. */
  13. interface IUserSession {
  14. /**
  15. * Do a user login
  16. * @param string $user the username
  17. * @param string $password the password
  18. * @return bool true if successful
  19. */
  20. public function login($user, $password);
  21. /**
  22. * @brief Logs the user out including all the session data
  23. * Logout, destroys session
  24. */
  25. public function logout();
  26. }