X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Flogout.ml;h=0ec195212c8b8f68494866092017b37afd4e7e8e;hb=cd059731a60fd3d4dcf426430ad26ff227b91910;hp=400e140f8cac39bb782a1f701551773262a3aee5;hpb=bfa88724ee152ba00c2b2fca881dd78a6599820a;p=cocanwiki.git diff --git a/scripts/logout.ml b/scripts/logout.ml index 400e140..0ec1952 100644 --- a/scripts/logout.ml +++ b/scripts/logout.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: logout.ml,v 1.7 2006/03/27 18:09:46 rich Exp $ + * $Id: logout.ml,v 1.9 2006/03/28 16:24:07 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,10 +37,7 @@ let run r (q : cgi) dbh hostid _ user = (match user with Anonymous -> () | User (userid, _, _, _) -> - let sth = dbh#prepare_cached "delete from usercookies - where userid = ?" in - sth#execute [Some userid]; - + PGSQL(dbh) "delete from usercookies where userid = $userid"; PGOCaml.commit dbh );