Conor
05-07-2004, 09:56 PM
I run a password protected section of my site and Id love for people to be able to logout without having to close the browser window. I hadnt thought it was possible til I saw it in Cpanel. Anyone aware of how they do it.
|
Click to See Complete Forum and Search --> : Does Anyone known how cpanel does logout? Conor 05-07-2004, 09:56 PM I run a password protected section of my site and Id love for people to be able to logout without having to close the browser window. I hadnt thought it was possible til I saw it in Cpanel. Anyone aware of how they do it. ray326 05-07-2004, 11:35 PM This isn't really an authenticated site, it's just a bit of cookie trickery. If your site uses basic authentication then you'd have to do something to flush the browsers' authentication cache and you have no way of doing that. PeOfEo 05-08-2004, 09:24 AM if its a cookie based or session based login you could just make all of the values null, to check the login do a length statement of the cookie. If the cookies values are null or there is no cookie it will return 0 right? I do not know what kind of scripting you are using and what kind of scripting this cpannel is using, I am just saying sort of what I do out loud for logins of mine that are cookie or session based. Conor 05-08-2004, 09:30 AM I could do a logout If I was using php but for this I had to use .htaccess and it seems thats what cpanel uses. PeOfEo 05-08-2004, 09:32 AM ah I see. Well, I am going to exit this thread, have fun ;) ray326 05-08-2004, 12:58 PM Originally posted by RefreshF5 I could do a logout If I was using php but for this I had to use .htaccess and it seems thats what cpanel uses. Using .htaccess would indicate you're using the server's basic auth. You can't force a true "logout". You could combine cookie info with a 403 response to simulate it, though. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |