Topic-icon SCLOGIN - URL for Logout

Active Subscriptions:

None
12 years 6 months ago #39344 by borfle
Hi, I installed the SClogin module (with social logins enabled) and have it published only on the homepage. The log in and log out are configured to stay in the same page (homepage). Since I also want the users to be able to log out from other pages, I want to be able to insert a custom HTML module at the footer of every page with the log out link so that the user can log out from any page without having to return to the homepage first. The custom module also has other links. I want this log out link to have the same effect as if the user selects the log out button of SCLogin from the homepage (i.e., after logging out, the user is taken to the home page). What is the log out URL that I should use?
Thanks.
The topic has been locked.
Support Specialist
12 years 6 months ago #39356 by alzander
Replied by alzander on topic SCLOGIN - URL for Logout
Borrow,
Unfortunately, there isn't just a direct HTML link that you can use to immediately log a user out in Joomla. The logout functionality requires session token, which is unique to each user. You need to actually create the logout link using PHP, unless you want to use the Joomla logout link, which will redirect the user to the Logout page itself.

As for other suggestions, you may want to put the SCLogin module in the lower position. We have an option for a "User Menu", where you can create whatever links you want using the Joomla menu manager. We also have the Logout link option, which is a direct link for logging out.

I hope that helps give you some ideas, but if you need more info, just let me know.

Thanks,
Alex
The topic has been locked.