summaryrefslogtreecommitdiffstats
path: root/Core/Exception
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-05-14 16:41:07 +0200
committerJohannes Schmitt <schmittjoh@gmail.com>2011-05-14 16:41:18 +0200
commitabcfb6cc50b5d8bfa766c2ad344df296d4a704e0 (patch)
tree09fb6ee1e922c8e283d3bf69f2a1b397be9ed7d8 /Core/Exception
parent1f646e86a8e3f4667906510041d5426931f75a6f (diff)
downloadsymfony-security-abcfb6cc50b5d8bfa766c2ad344df296d4a704e0.zip
symfony-security-abcfb6cc50b5d8bfa766c2ad344df296d4a704e0.tar.gz
symfony-security-abcfb6cc50b5d8bfa766c2ad344df296d4a704e0.tar.bz2
[Security/Http] better error message when session times out, or cookies are disabled
Diffstat (limited to 'Core/Exception')
-rw-r--r--Core/Exception/SessionUnavailableException.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/Core/Exception/SessionUnavailableException.php b/Core/Exception/SessionUnavailableException.php
new file mode 100644
index 0000000..a00c897
--- /dev/null
+++ b/Core/Exception/SessionUnavailableException.php
@@ -0,0 +1,27 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Security\Core\Exception;
+
+/**
+ * This exception is thrown when no session is available.
+ *
+ * Possible reasons for this are:
+ *
+ * a) The session timed-out because the user waited too long.
+ * b) The user has disabled cookies, and a new session is started on each
+ * request.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class SessionUnavailableException extends AuthenticationException
+{
+} \ No newline at end of file