I have the same problem, it doesn't seem to logout for me.
I was going to try the complicated one by Jim Goldbloom (accessdenied) but it looks like it is doing a lot more than I want it to.
Is that a bad idea? What is the latest version of login.cgi by arlo.net? I can't find the script on the official site and the one I downloaded here was last updated on 11/07/00 (probably doesn't work with the 5.47 versions).