How does Codeigniter's sess_time_to_update work

后端 未结 1 450
醉梦人生
醉梦人生 2021-01-17 12:15

based on the following question/answer CodeIgniter session class not working in Chrome

I had the problem where people are unable to login to my website from another

相关标签:
1条回答
  • 2021-01-17 12:38

    The sess_time_to_update setting is how often the session details (such as last activity) are updated. The default is every 5 minutes (300 seconds) and a new session ID will be generated. This would reset the expiration date based on the sess_expiration setting.

    I would suggest keeping the sess_time_to_update at the default (or lower) as that would keep the user session alive longer since the session expiration would keep getting reset. The only setting that may need to remain high would be sess_expiration, that is unless you can determine the users timezone.

    There are a couple of ways you could try to determine the users timezone. One would be Javascript (Example: Client Side Timezone Offsetting) or you could try using PHP's GEOIP Methods.

    0 讨论(0)
提交回复
热议问题