Welcome Guest, Not a member yet? Register   Sign In
PHP's session.cache_limiter setting of 'nocache' is not honored in CI
#1

[eluser]Jackpod[/eluser]
hello

in my application, i have PHP's session.cache_limiter setting set to 'nocache' so pages are not cached in the browser, and this works great for regular PHP files outside of CI

but it appears that CI does not honor this setting

i assume that CI is not using PHP's session handling functions

my questions are... is this assumption correct and what is the correct way to achieve the same caching behavior in CI?

thanks!
#2

[eluser]WanWizard[/eluser]
Correct, CI doesn't use PHP's session library.

You have to manually define the http headers. See the user guide, Output class, $this->set_header(). Some examples are provided, http://php.net/manual/en/function.sessio...imiter.php tells you what headers are behind PHP's command (under parameters).




Theme © iAndrew 2016 - Forum software by © MyBB