Results 1 to 3 of 3
Thread: Logging out of sessions
May 7, 2002, 02:43 #1
- Join Date
- Apr 2002
- 0 Post(s)
- 0 Thread(s)
Logging out of sessions
Just about coming to terms with setting up users sessions using PHP and I am pleased with how well I have picked it all up so far, with a little help from you guys of course!
I have created a sign-up page, etc. and then protected the pages that need protecting and all is well!
What I now want to do is the logging out procedure. I have my website set up in two frames, say a top and a bottom frame. I have my buttons in the top frame and the content in the bottom frame. So if I have a button for logging out of the session in the top toolbar, I'm guessing that all I need to do is hyperlink a page to it that contains a session_destroy() command and then with a copy of the home page underneath?
Am I correct in thinking this?
Does anyone have an example of a piece of code where this is used?