Jump to content

What's the reason for the Logout "Click here to continue..." button?


northfork

Recommended Posts

This has always bugged me. What is the reason WHMCS displays a "Click here to continue..." button when a user logs out of their account? See screenshot.

Why can't it just show the user account login page again once they log out? Just like WHMCS does when logging out of your admin area.

Am I missing something seems not needed for the user to click a button to do nothing. 

Thanks in advance.

Screen Shot 2019-02-16 at 11.50.18 AM.png

Link to comment
Share on other sites

14 hours ago, northfork said:

This has always bugged me.

let's not start making one of those lists - we'd be here for a while. 🙂

14 hours ago, northfork said:

What is the reason WHMCS displays a "Click here to continue..." button when a user logs out of their account? See screenshot.

I suspect it's just a legacy thing... e.g WHMCS has always done that (as far as I can remember) when logging out.

14 hours ago, northfork said:

Why can't it just show the user account login page again once they log out? Just like WHMCS does when logging out of your admin area.

Am I missing something seems not needed for the user to click a button to do nothing. 

simplest solution would be to use a hook to redirect the user to a specific page when they logout - that could be back to login.php, to your homepage or even an external link... I wrote the hook below for another user using v7.5 back in May 2018, but it would still work with v7.7.1 (and probably any version of WHMCS released in recent years)... thanks.png

<?php

/**
* Client Logout Redirection Hook
* @author brian!
*/

function logout_redirect_hook($vars){

	$url = 'login.php';
	header( 'Location: '.$url );
}

add_hook('ClientLogout', 1, "logout_redirect_hook");
Link to comment
Share on other sites

  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated