The link you're using is incorrect! Never link directly to login.php and logout.php.
The link should look something like this where
page.php is your password protected page:
Code:
<A HREF="page.php?action=logout">Logout</A>
Please have a look at the readme file included.