![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 | |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,125
|
![]() Are there any other options to logout when using a user authentication based method through .htaccess other than this?
Quote:
![]() All the search results I have found only discuss the above option.
__________________
SOMETHING EXTREME IS COMING SOON! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,025
|
Not really possible as the browser hasn't "logged in" in the first place.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,125
|
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So fuckin' bored
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/'); }
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |