]> dev.renevier.net Git - syp.git/blobdiff - logout.php
real api and clearer separation between server and client
[syp.git] / logout.php
diff --git a/logout.php b/logout.php
new file mode 100644 (file)
index 0000000..c2cd62c
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+require_once ("./inc/settings.php");
+
+$cookie_name = sprintf ("%sauth", DBPREFIX);
+setcookie ($cookie_name, "", time () - 3600, "" , "",false, true);
+header ('Location: index.php');
+
+?>