Welcome Guest, Not a member yet? Register   Sign In
Issue Maintaining Logged in State
#2

(This post was last modified: 10-30-2020, 12:01 AM by InsiteFX.)

Without seeing your session code it is hard to try and fix your problem.

This is how you can do it for all web browsers.

PHP Code:
header("Content-Type: application/json");
header("Expires: 0");
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache"); 

If the 0 in the header expires isn't working on expires due to old browsers not understanding it, 
you can try putting the date to a time in the past.

PHP Code:
header("Content-Type: application/json");
header("Expires: on, 01 Jan 1970 00:00:00 GMT");
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache"); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Issue Maintaining Logged in State - by clancey - 10-29-2020, 10:48 AM
RE: Issue Maintaining Logged in State - by InsiteFX - 10-30-2020, 12:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB