about codeigniter3 session |
(11-14-2015, 10:19 PM)sheng Wrote:(11-14-2015, 05:25 AM)InsiteFX Wrote: Then use the session database. PHP should automatically cleanup old sessions (regardless of which driver you use) based on the settings session.gc_probability, session.gc_divisor, and session.gc_maxlifetime, usually set in php.ini (but it can be set elsewhere, if needed). Some Linux installations (especially Debian-based distributions like Ubuntu) set these variables so the built-in garbage collector won't run, then add their own cron job to do it every 30 minutes or so. The only problem with that is that you probably aren't using the default location for session data, so you would have to either change the settings or create your own cron job to perform the garbage collection. |
Messages In This Thread |
about codeigniter3 session - by sheng - 11-13-2015, 08:30 PM
RE: about codeigniter3 session - by InsiteFX - 11-14-2015, 05:25 AM
RE: about codeigniter3 session - by sheng - 11-14-2015, 10:19 PM
RE: about codeigniter3 session - by mwhitney - 11-16-2015, 09:05 AM
RE: about codeigniter3 session - by FlevasGR - 11-14-2015, 08:40 AM
RE: about codeigniter3 session - by sheng - 11-14-2015, 10:20 PM
|