Sounds like you have your session settings wrong in you php configuration. The session should be deleted when you logout. Try another php application that uses session based logins, if it does the same thing it is something to do with your php settings.
Regards,
Daniel Davis