SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Logging out of sessions
-
May 7, 2002, 02:43 #1
- Join Date
- Apr 2002
- Posts
- 37
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Logging out of sessions
Hi,
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?
Cheers
Bobski
-
May 9, 2002, 08:25 #2
- Join Date
- Jul 2000
- Location
- Dublin , Ireland
- Posts
- 1,271
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You would get a much better response in the PHP forum :d
Back Again
-
May 9, 2002, 08:34 #3
- Join Date
- Aug 2000
- Location
- Thailand
- Posts
- 4,810
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by sbdi
You would get a much better response in the PHP forum :d
While the "Beginners" section is a valid place to post this, I feel you'll get a better response here - hope you don't mind
H~The Artist Latterly Known as Crazy Hamster~
922ee590a26bd62eb9b33cf2877a00df
Currently delving into Django, GIT & CentOS
Bookmarks