This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » [EZ 5.3] - Session clear cache
expandshrink

[EZ 5.3] - Session clear cache

[EZ 5.3] - Session clear cache

Tuesday 03 June 2014 10:56:04 am - 4 replies

Hello,

We have a problem on ez 5. When we clear the cache with the console (php ezpublish/console cache:clear), the sessions are deleted. So, the user is offline.

Is there a way to keep sessions alive when we clear the cache ?

Tkx 

Modified on Tuesday 03 June 2014 10:57:42 am by Clem PERISCOPE

Tuesday 03 June 2014 11:32:57 am

Hi Clem,

You can change the of sessions files in your config.yml file:

session:
    save_path: %kernel.root_dir%/sessions

Modified on Tuesday 03 June 2014 11:38:02 am by Soufian DAOUDI

Tuesday 03 June 2014 2:00:50 pm

Thank you, it's perfect. This config have to be added to key "framework". For example :

framework:
    session:
        save_path: /tmp

Modified on Tuesday 03 June 2014 2:01:37 pm by Clem PERISCOPE

Tuesday 03 June 2014 2:45:25 pm

HI,

If you want to use the php.ini configuration for session :

 framework:
     session:
         handler_id: ~

Modified on Tuesday 03 June 2014 2:46:15 pm by Madeline VEYRENC

Tuesday 03 June 2014 3:11:40 pm

Thank for your response Madeline. Indeed, It can be a good alternative too !

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from