I’m using session_cache_limiter() and session_cache_expire() at the top of my PHP 5.1.0 script, just before my session_start().
From PHP help:
[…] you need to call
session_cache_limiter() for every
request (and before session_start() is
called).
But what if I don’t call session_start()? Will session_cache_limiter() and session_cache_expire() work without a session_start() after them?
Thanks!
Example taken straight from “PHP: session_cache_limiter” off php.net
Quoted section below from original is false. See @eCaroth’s comment below for corrected information.