diff options
Diffstat (limited to 'core/Nonce.php')
-rw-r--r-- | core/Nonce.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/Nonce.php b/core/Nonce.php index ff6a97227b..8f876b1890 100644 --- a/core/Nonce.php +++ b/core/Nonce.php @@ -11,9 +11,8 @@ namespace Piwik; use Piwik\Common; -use Piwik_Session_Namespace; +use Piwik\Session\SessionNamespace; use Piwik\Url; -use false; /** * Nonce class. @@ -40,7 +39,7 @@ class Nonce static public function getNonce($id, $ttl = 300) { // save session-dependent nonce - $ns = new Piwik_Session_Namespace($id); + $ns = new SessionNamespace($id); $nonce = $ns->nonce; // re-use an unexpired nonce (a small deviation from the "used only once" principle, so long as we do not reset the expiration) @@ -64,7 +63,7 @@ class Nonce */ static public function verifyNonce($id, $cnonce) { - $ns = new Piwik_Session_Namespace($id); + $ns = new SessionNamespace($id); $nonce = $ns->nonce; // validate token @@ -97,7 +96,7 @@ class Nonce */ static public function discardNonce($id) { - $ns = new Piwik_Session_Namespace($id); + $ns = new SessionNamespace($id); $ns->unsetAll(); } |