SessionUnavailableException.php 904 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Core\Exception;
  11. /**
  12. * This exception is thrown when no session is available.
  13. *
  14. * Possible reasons for this are:
  15. *
  16. * a) The session timed out because the user waited too long.
  17. * b) The user has disabled cookies, and a new session is started on each
  18. * request.
  19. *
  20. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  21. * @author Alexander <iam.asm89@gmail.com>
  22. */
  23. class SessionUnavailableException extends AuthenticationException
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function getMessageKey()
  29. {
  30. return 'No session available, it either timed out or cookies are not enabled.';
  31. }
  32. }