summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/MySQLStore.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-09-24 18:31:33 +0000
committertailor <cygnus@janrain.com>2007-09-24 18:31:33 +0000
commitf9d88780e22f049e92c7a23b39ce0b2784ef3021 (patch)
tree519214b07a286c4d3d7b9e962b6fd9c9eabe413d /Auth/OpenID/MySQLStore.php
parent0f270daead5c4821861718c734e55e54ed7ca4d7 (diff)
downloadphp-openid-f9d88780e22f049e92c7a23b39ce0b2784ef3021.zip
php-openid-f9d88780e22f049e92c7a23b39ce0b2784ef3021.tar.gz
php-openid-f9d88780e22f049e92c7a23b39ce0b2784ef3021.tar.bz2
[project @ Add cleanupNonces to SQL stores]
Diffstat (limited to 'Auth/OpenID/MySQLStore.php')
-rw-r--r--Auth/OpenID/MySQLStore.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Auth/OpenID/MySQLStore.php b/Auth/OpenID/MySQLStore.php
index 4b2d29d..04dded8 100644
--- a/Auth/OpenID/MySQLStore.php
+++ b/Auth/OpenID/MySQLStore.php
@@ -60,6 +60,9 @@ class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore {
$this->sql['get_expired'] =
"SELECT server_url FROM %s WHERE issued + lifetime < ?";
+
+ $this->sql['clean_nonce'] =
+ "DELETE FROM %s WHERE timestamp < ?";
}
/**