okay, i finally got my scripts running okay for the login part of my site, but now when I try to log out I do three things:
first I erase the cookies: that works fine
then I try to end the session: doesnt work
third, i try to empty the variables that hold user and pass info: only works on refresh because the code to erase them wont work.
I got the logout script being performed first if perform=logout, so that it can do everything before the page loads and send the cookies, although it does log out, ti's only because the cookies are erased, but the transition isnt smooth, its got some error messages saying the session is uninitialized or destruction failed, and it retains the variables even though I say empty them.