Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Logout page  (Read 4315 times)

0 Members and 1 Guest are viewing this topic.

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Logout page
« on: June 20, 2006, 07:05:52 PM »
(this topic moved from WebDesign to Other)
I need a logout page for my site. I am not sure of how to do this.  
 
I would assume that you would use some sort of script. I did search Google, but found nothing.  
 
Is there something I can do?
 
(I am not sure what other info I need to include. I will include more if necessary)
 
(if you wanted to know, I need a logout script for password protected directories. Like the link I am about to add below as a test subject. )
Just to show you what I mean, go to the link, and use username "guest" password "password" (don't worry, this is only for one folder on my site. You cant get to anything else)
www.jessez.mbhosting.com/temppass/loggedin.htm
 
I might as well ask this too:
Is that page really, secure? Could someone get into it if they wanted to without a password/username?  
 
(I did try the following:
 
<?  
session_start();
session_destroy();
?>
 
it didnt work, unless I did something wrong.)

GX1_Man

  • Guest
Re: Logout page
« Reply #1 on: June 20, 2006, 07:25:56 PM »
Are you sure this doesn't belong in Web Design?

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Logout page
« Reply #2 on: June 20, 2006, 07:30:05 PM »
I did put it there. It was there. It got 8 views in about 5 hours.
(and 4 of those views were mine)

Feel free to move it GX1_MAN, I really don't mind.
(or I could move it. Whichever)


GX1_Man

  • Guest
Re: Logout page
« Reply #3 on: June 20, 2006, 07:47:42 PM »
We'll leave it here and see what happens. I don't think it will be much of a "hot topic", but you never know.  ;)

Flame

  • Moderator


  • Prodigy

  • Think, dream, see, be... Everything.
  • Thanked: 6
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Other
Re: Logout page
« Reply #4 on: June 20, 2006, 08:19:58 PM »
That script you have won't do much good. I'm pretty sure this is more what you're looing for... http://www.zymic.com/show_downloads_sub.php?id=9 ... You want to dowload that login script. See if that helps  ;)

Flame

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Logout page
« Reply #5 on: June 20, 2006, 08:33:32 PM »
Quote
That script you have won't do much good. I'm pretty sure this is more what you're looing for... http://www.zymic.com/show_downloads_sub.php?id=9 ... You want to dowload that login script. See if that helps  ;)

Flame
Well, it makes a logon. I still need a logoff.
I think I will try my script again, but do something different.

(Making the HTML process the PHP file. Could work, but its the same thing I did before)
What does PHP stand for anyways?

Update: PHP processing with that sissy script I had didnt work. I just got a bunch of errors. (see the logout page in the link that I posted earlier)
« Last Edit: June 20, 2006, 08:42:47 PM by zylstra555 »

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Logout page
« Reply #6 on: June 20, 2006, 08:45:26 PM »
Someone should probably explain to me what a logout script does.
(Does it delete cookies? Does the cookie file need to be specified in the logout script? And whatever else there is to know, etc..)
I am going to do another google search using more web search formatting.

BTW: this is an .htaccess logon. If that helps.
« Last Edit: June 20, 2006, 08:47:08 PM by zylstra555 »

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Logout page
« Reply #7 on: June 22, 2006, 11:53:55 AM »
It is not particularly easy to force a logoff from an HTTP authenticated session but >this page< provides some useful pointers.  Personally, I create my own PHP-driven authentication using a mixture of cookies, session cookies and IP-locking.  I prefer this method because I can have much more control over it and can take considerable steps to protect login credentials and circumvent session-stealing.

This is a fairly big topic really, but it has been discussed a few times before in the web design section - have a trawl.  The main reason for logging off I guess would be to ensure that a different user coming to the same PC cannot access private information or take unauthorised steps.

In my version of authentication, this involves something at server and client ends of the connection.  At the server end, I use a database to track current sessions (and do the IP-locking I mentioned).  At the client end, deletion of HTTP cookies and session cookies ensures that the session is fully terminated.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Logout page
« Reply #8 on: June 22, 2006, 02:14:29 PM »
Confusing...
I will take a look and see if I can get that figured out.

Thanks

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Logout page
« Reply #9 on: July 04, 2006, 04:19:44 PM »
Apache gave me the answer:
"You cant"
Oh well, looks like all my users are logged in FOREVER.
Are there any easy alternatives, like how this site makes a login?
(or is it more complicated than I want?)

A PHP program type manager would be wonderful, oh well.

(from the website that Rob gave me, I could, but it seems WAY to complicated for someone like me)
« Last Edit: July 04, 2006, 04:23:05 PM by zylstra555 »

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Logout page
« Reply #10 on: July 05, 2006, 03:35:29 AM »
Just google "php login script".  You'll find loads.  But unless you fully understand the security implications, don't give people the impression that the login is secure.  :)
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos