Feature #42366

Make session handling compatible to any PHP session handler

Added by Martin Brüggemann over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Session
Target version:
-
Start date:
2012-10-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Today there's no possibility to get Flow working with a custom php session save handler like redis or memcached. You can define one in your php.ini but Flow tries to create the session_save_path as a folder if it doesn't exist. This leads to something like this:

Uncaught Exception              
  Could not create directory "tcp://127.0.0.1:6379"!  

Flow, Y U no Redis? ;)

My solution would be to add an option called "TYPO3:Flow:session:PhpSession:saveHandler" in the Settings.yaml and set this to "file" as default. Also there should be a small check, if the save_handler is still "file", before trying to create some sesssion storage folders in TYPO3\Flow\Session\PhpSession (in initializeObject and destroyAll). Then it's easy for Flow users to switch to a redis save handler f.e. and get it up running without an exception.


Related issues

Related to TYPO3.Flow - Feature #42403: Session handler based on HTTP foundation with multi-backend supportResolvedRobert Lemke2012-10-25

Actions
#1

Updated by Christian Müller over 8 years ago

Sounds good, do you provide a change, Martin?

#2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15930

#3

Updated by Robert Lemke over 8 years ago

  • Status changed from Under Review to Rejected

This feature request has been dropped in favor of a more capable FlowSession implementation.

Also available in: Atom PDF