10000 [HttpFoundation][Sessions] NativeFileSession won't override the php.ini settings anymore by dlsniper · Pull Request #5267 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation][Sessions] NativeFileSession won't override the php.ini settings anymore #5267

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NativeFileSession won't override the php.ini settings anymore
  • Loading branch information
dlsniper committed Aug 15, 2012
commit 314c16beff912682955f3a905e06106924f4e604
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ class NativeFileSessionHandler extends NativeSessionHandler
*/
public function __construct($savePath = null)
{
// We don't want to override the server settings in case the server is configured to handle sessions
// in something else than files. This makes it easy to configure servers to have sessions stored in
// memcached/redis or anything else from PHP.ini
if ('files' != ini_get('session.save_handler')) {
return;
}

if (null === $savePath) {
$savePath = ini_get('session.save_path');
}
Expand Down
0