Welcome Guest, Not a member yet? Register   Sign In
Problem with Codeigniter
#2

(This post was last modified: 05-14-2015, 07:02 AM by techbat.)

Codeiginter session Library is internally using COOKIE, so you may get cache issue mostly in IE browsers, means cookie is store in client browser, when client received response header then updated session value will show on client end.
You may resolve issue from following things

  1. You can use other session library that can work with PHP session (ref: https://github.com/bcit-ci/CodeIgniter/w...ve-session)
  2. If you want to use CI native session library, then you should mind following things,  When session is created / updated, you should also remove cache from response header.
     
    PHP Code:
     header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); 


Passionate PHP Programmer & Codeigniter Developer :- Always happy to help you!
Reply


Messages In This Thread
Problem with Codeigniter - by gentilezza - 05-14-2015, 01:09 AM
RE: Problem with Codeigniter - by techbat - 05-14-2015, 07:01 AM
RE: Problem with Codeigniter - by kenjis - 05-14-2015, 02:20 PM
RE: Problem with Codeigniter - by techbat - 05-14-2015, 10:56 PM
RE: Problem with Codeigniter - by kenjis - 05-14-2015, 11:44 PM
RE: Problem with Codeigniter - by gentilezza - 05-14-2015, 10:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB