PHP Session lost in CodeIgniter IE only

后端 未结 2 1582
悲哀的现实
悲哀的现实 2021-01-27 07:04

I\'m losting the session with CodeIgniter and only in Internet Explorer

I send an AJAX request to my first controller:

/controller/method1

相关标签:
2条回答
  • 2021-01-27 07:36

    My solution is similar to @sachin-prasad's answer. Only removing the underscore of the sess_cookie_name value will not work. You need to increase the sess_expiration as well.

    I tested it in IE 11 and the session works fine.

    0 讨论(0)
  • 2021-01-27 07:53

    Change the 'sess_cookie_name' in config from 'ci_session' to 'cisession'and sess_expiration from 7200 to 84200.

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