How to create “remember me checkbox” using Codeigniter session library?

后端 未结 7 1157
梦如初夏
梦如初夏 2020-12-12 18:30

in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library

     session->set_userdata(\'username\')
<         


        
相关标签:
7条回答
  • 2020-12-12 19:06

    You can set sess_expiration to 0 and then set a custom variable into the session like, remember_me=1. Check this value and destroy the session if needed after a time. This would be a workarround.

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