Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-15-2022, 03:35 PM   #1
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,125
.htpasswd logout?

Are there any other options to logout when using a user authentication based method through .htaccess other than this?

Quote:
logout:[email protected]
If there was an option to be able to achieve this with .php and you could point me in the right direction where I can read up on it, that would also be great

All the search results I have found only discuss the above option.
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-15-2022, 05:09 PM   #2
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,026
Not really possible as the browser hasn't "logged in" in the first place.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-15-2022, 06:48 PM   #3
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,125
Quote:
Originally Posted by fuzebox View Post
Not really possible as the browser hasn't "logged in" in the first place.
Yeah, all im finding is basically swapping the existing user/pass combo for one that doesnt exist or theres a Javascript that sort of does it, but again its just a way to do what I posted originally by swapping the user/pass combination and redirecting to another page.
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2022, 02:15 AM   #4
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,087
Try to inspect what, if anything, gets stored in your browser when you log in. I can't recall, if a session is created or not... Anyway, using a fake user/pass to login again will do the trick, just as you posted above.

Cheers,
z
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-16-2022, 02:17 AM   #5
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
Code:
if (isset($_COOKIE['my_user_cookie'])) {
    unset($_COOKIE['my_user_cookie']);
    setcookie('my_user_cookie', '', time() - 3600, '/');
    header('Location: https://gfy.com/');
}
Or maybe I just didn't get the question.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
logout, option, read, direction, found, discuss, results, search, thumbsup, .php, authentication, user, based, method, options, .htaccess, .htpasswd, achieve, [email protected]



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.