This topic is locked
[SOLVED]

 Log Out button on a VIEW PAGE

5/29/2019 12:45:46 PM
PHPRunner General questions
J
jwingard author

I would like to have the standard LOG OUT button on a view page. Simple to do on a list page with 'insert standard button'. Log Out is not an option when trying to insert a standard button on a view page. Anyone know what the code would be if I were to create a custom button for this?

admin 5/29/2019

Add a custom button and add the following code to ClientBefore event. Other events can be empty.

window.location.href = "login.php?a=logout";
J
jwingard author 5/31/2019

Perfect.