Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Gabriela Arsene: "MySQL PHP Generator is really excellent! A very useful, easy to use tool and above all it is free, saving a lot of time and money to a developer! Great job! Congratulations to all the people who work at this project".
Steven Langfield: "I wanted to drop you a mail to say how freaking AMAZING your software is. It will be the best £100 I have ever spent. I have still to read all your documentation to take full advantage but what you have created is truly amazing".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnBeforeLogout

This event occurs just before a user logged out from the application by pressing the Logout button or when the inactivity timeout is reached.

 

Signature:

function OnBeforeLogout ($userName, $connection)

 

Parameters:

$userName

The name of the logged user.

$connection

An instance of the EngConnection class.

 

Example

Among other things this event can be used for tracking the user activity. The code snippet below inserts a new record containing user name and the action into the 'activity_log' table.

 

$connection->ExecSQL(

  "INSERT INTO activity_log (user_name, action) values ('$userName', 'logout')"

);

 

See also: OnAfterLogin and OnAfterFailedLoginAttempt events



Prev Return to chapter overview Next