Myr0n 12/24/2020 | |
You can do add that condition in AfterSuccessfulLoginjust I suggest you to add a flag that indicate when was the last time that you check that "all data records older than 30 days should be deleted" to do not requesting too much to your database. |
A
|
Andreas G. author 12/24/2020 |
You can do add that condition in AfterSuccessfulLoginjust I suggest you to add a flag that indicate when was the last time that you check that "all data records older than 30 days should be deleted" to do not requesting too much to your database.
<?php |
A
|
Andreas G. author 12/25/2020 |
It's been dealt with. |
Myr0n 12/25/2020 | |
It's been dealt with. I put it completely in After successful login without <?php ?> Seems to work
DB::Delete("contactlist", "DATEDIFF (NOW (), date)> = 30" ); |
A
|
Andreas G. author 1/15/2021 |
You should use db::delete You don't need to open a connection to your db DB::Delete("contactlist", "DATEDIFF (NOW (), date)> = 30" );
|