Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] Redis session handler#14539

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
sgrodzicki wants to merge1 commit intosymfony:2.7fromsgrodzicki:redis-session-storage
Closed

[HttpFoundation] Redis session handler#14539

sgrodzicki wants to merge1 commit intosymfony:2.7fromsgrodzicki:redis-session-storage

Conversation

@sgrodzicki
Copy link
Contributor

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PRsymfony/symfony-docs#5230

@cordoval
Copy link
Contributor

I hope this gets in on 2.7 though it has been feature freezed 😟

@Tobion
Copy link
Contributor

I'm pretty sure there already exists a redis session handler, even as PHP C extension.

@sgrodzicki
Copy link
ContributorAuthor

@Tobion please have a closer look. This is just a wrapper which internally uses the C extension. Youcan set the session handler on a PHP configuration level but often it is more convenient to place it right into your app. That's why all other handlers were created in the first place.

@Tobion
Copy link
Contributor

@sgrodzicki I had a close lock and I don't see the point of it.

  1. it's not compatible with the core redis session handler, as it for example uses a different prefix by default. so you cannot easily exchange them
  2. it has less features then the existing one
  3. it doesn't seem to lazy connect to redis
  4. it doesn't close the connection

So what's the advantage?

@jakzal
Copy link
Contributor

You can set the session handler on a PHP configuration level but often it is more convenient to place it right into your app

When do you think it's more convenient to use a custom handler, instead of the native one?

@sgrodzicki
Copy link
ContributorAuthor

@jakzal when you don't have access to the PHP configuration file and/or you're hosting multiple Symfony projects on the same server/workers.

@Tobion
Copy link
Contributor

@sgrodzicki you can set the native handler in code with ini_set. You don't need access to the config file.

@sgrodzicki
Copy link
ContributorAuthor

@Tobion how is that different from Memcached/MongoDB?

@fabpot
Copy link
Member

Closing for the reasons given by@Tobion

@fabpotfabpot closed thisSep 14, 2015
@mvrhovmvrhov mentioned this pull requestMar 19, 2016
nicolas-grekas added a commit that referenced this pull requestFeb 4, 2018
This PR was merged into the 4.1-dev branch.Discussion----------[HttpFoundation] RedisSessionHandler| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#24433,#18233,#14539,#4538,#3498| License       | MIT| Doc PR        |symfony/symfony-docs#8572Ability to use Redis as a session storage backend. Discussed in detail in linked issues / PRs.Commits-------8776cce [HttpFoundation] Add RedisSessionHandler
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@sgrodzicki@cordoval@Tobion@jakzal@fabpot@nicolas-grekas@aitboudad

[8]ページ先頭

©2009-2025 Movatter.jp