I am having problems with a few scripts.

When using cookies, it keeps me logged in, I cannot logout.
Giving a preset cookie results in not being able to log out while logged in.

The url is: (adult portion)

http://adult.sonicdash.net/museum
Cookie path: /adult/museum/

The other problem rests here:

http://www.sonicdash.net/museum
Cookie path: /

Any help?

I am low on PHP knowledge because art takes up my life XP