A
|
alang 8/26/2007 |
This action will trigger the LoginOnLoad event but the downside is that it will also be triggered when you first login. You can't use SESSION variables to distinguish as the SESSION variables are unset by the logout action so not sure whether this helps. I note that cookies are also set by the logout so I guess it might be possible to use this fact to determine the difference between initial login and subsequent logout?? |
J
|
Jane 8/27/2007 |
John, if ($_REQUEST["a"]=="logout") { //your code } |
J
|
jbartc author 8/27/2007 |
John, you can use LoginOnLoad event for this purpose. Here is a sample:
|
![]() |
Alexey admin 8/28/2007 |
John, if(@$_POST["a"]=="logout" || @$_GET["a"]=="logout") {
|
J
|
jbartc author 9/7/2007 |
John, unfortunately you can not use events in this case. Find this lines in generated login.php file: and insert your custom code just after.
|
A
|
alang 9/13/2007 |
Another option to avoid having to edit generated code is to add some code to the commonfunctions module - this is at the top level and not inside a function: |