nicktacular / php-mongo-session

A PHP session handler with a Mongo DB backend.
MIT License
18 stars 6 forks source link

Default config settings cache and cache_expiry #15

Open mikeytag opened 9 years ago

mikeytag commented 9 years ago

The default config setting for cache is currently set to "private_no_expire" and the setting for cache_expiry is set to 10.

The defaults in PHP are actually "nocache" and 180. This caused an issue for our app that I caught today but I think it makes sense that php-mongo-session's defaults should be the same as PHP out of the box for things like this. I have changed my default config to:

        'cache' => 'nocache',
        'cache_expiry' => 180,//minutes

I recommend that the settings be updated in master to have these important settings (they control the headers passed to clients) set to PHP defaults.

nicktacular commented 9 years ago

That makes sense. Could you make a PR for this?