Howdy
The way I do it is when the client logs in the script sets a cookie (using sessions). On all inner sites that they must be logged in to view/etc, it checks for the session variables and if they exist, it allows them in, if not, it kicks them back to the login page. To log them out, I just use something like:
<pre>
function logout() {
session_destroy(); #Destroy the current session vars
printf("%s, you are now logged out.", $this->user);
}
</pre>
Thats from one of my mini auth libs (class), just call logout().. :-)
HTH.
ceph