Open wadealer opened 3 years ago
Can you write that code inside a controller (like a webhook) and call it with wget within cron ?
[controller/Session.php] ... public function gc(){ //Do some sanity check first // Need active session to initialize session data storage access. session_start(); // Executes GC immediately session_gc(); // Clean up session ID created by session_gc() session_destroy(); }
[...]
[crontab]
[...]
on cron?
Hello, I fork this to start solving this problem. I have a solution to this issue. It works done in my apps and websites.
I'll explain the steps of my work and the topic in a few days.
As as CI documentation says
But PHP documentations says:
And now we faced the probleam. We cann't use
CRON
becausesession
class doesn't work withCLI
. If we try to use anothe example from PHP docs:it is do nothing, because handleers are not inited properly. Any ideas?