CodeIgniter - execute function when session expires -


i'd update own database when session expires. modified codeigniter's session file , wrote own code in sess_destroy(). everytime user logouts, sess_destroy() called. works correctly database gets updated. problem though database doesn't update when session expires. test it, set sess_expiration in config.php file 20 seconds wouldn't have wait long expire. after expire, login details supposed displayed gone, meaning session gone. database, however, not updated @ all. i've tried inputting code in unset_userdata() , sess_gc() database still doesn't update.

suggestions welcome. thank you

the way call sort of cron job regularly scan database of sessions expired sessions , purge them or log them etc. nothing going trigger automatically.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -