Hi
I build a session server witch records my session information in SQL Server instead of files.
Everything is working just fine except one. It doesn't do the garbage collect.
To do this, i placed a function just as i saw in the PHP manual like this:
function gc ($maxlifetime) {
$query="DELETE FROM sessoes WHERE DATEDIFF(mi,tempo,getdate())>$maxlifetime";
db_query($SESSION_CONN,$query);
return true;
}
session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
But it nevers enters this function.
Can anyone tell me witch is my problem?