Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default config settings cache and cache_expiry #15

Open
mikeytag opened this issue Jan 17, 2015 · 1 comment
Open

Default config settings cache and cache_expiry #15

mikeytag opened this issue Jan 17, 2015 · 1 comment

Comments

@mikeytag
Copy link

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
Copy link
Owner

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

nicktacular added a commit that referenced this issue Feb 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants