This topic is locked

onexit

4/9/2009 7:59:36 AM
PHPRunner General questions
D
danaci author

hi,

how to handle before logout? (phpr 5.0 build 587)

because I'm wanting before login add username to table and before logout delete username from table .
ex.
login

insert into users values($_SESSION["UserId"]);
logout
delete from users where username=$_SESSION["UserId"];
thnx.

J
Jane 4/9/2009

Hi,
open generated login.php file and add your code just after these lines:

if(@$_POST["a"]=="logout" || @$_GET["a"]=="logout")

{