Skip to content

Creating A Custom Logout Button

Ben Smith edited this page Jul 28, 2016 · 3 revisions

Edit Line 7 in 'steamauth.php'

You just have to create a link or button that directs the user to ?logout.

Examples:

<a href="?logout">Log out</a>
<form action="" method="GET"><button type="submit" name="logout">Log out</button></form>

then to call the logout button on your page using php all you need is logoutbutton();

check out the demo.php/example.php files to see it in action

Clone this wiki locally