Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.1, 5.2, 2014.01, 5.3-dev
Description
This only occurs when using Symfony stack, with legacy fallback.
In a legacy module, when you set a session variable and then perform a redirection (e.g. using $Module->redirectTo( '/' )) to a page managed by Symfony stack, created session will be lost during the redirection process.
Steps to reproduce
- Create a legacy module with the following code:
<?php $Module = $Params['Module']; $Result = array(); $http = eZHTTPTool::instance(); $http->setSessionVariable( 'foo', time() ); $Module = $Params['Module']; return $Module->redirectTo( "/my_custom_controller_uri" );
- Create a custom symfony controller with a /my_custom_controller_uri route, and ensure you dump foo session variable:
var_dump( $this->getRequest()->getSession()->get( 'foo' ) );
- Access to your legacy module URL, you'll be redirected to your custom controller and foo session variable will be null
Attachments
Issue Links
- relates to
-
EZP-22665 Login to admin interface not working
- Closed
-
EZP-22643 "Missing form token from Request " when creating an object after clearing cache
- Closed
-
EZP-23356 Login to admin interface not working in 5.2
- Closed
-
EZP-23307 PHP Fatal error: Failed opening required ezpkernelredirect.php
- Closed
- links to
(2 links to)