I'm facing a really weird issue with an application i'm working on based on symfony2 (2.5).
Long story short: in the config.yml file i have this:
framework:
...
session:
name: "a_given_name"
# THE FOLLOWING LINE CAUSES THE PROBLEM
handler_id: session.handler.native_file
save_path: "%kernel.root_dir%/sessions"
cookie_lifetime: 2629744 #1 month
gc_maxlifetime: 2629744 #1 month
...
And session does not work! I checked everything, the system create the files but those files are always empty.
Changing the entry realated to "handler_id" in config.yml to: "~" everything works fine.
framework:
...
session:
# CHANGING TO THE FOLLOWING -> IT WORKS
handler_id: ~
...
But, as stated in the docs, the "session.handler.native_file" is the default hanlder... so it should work anyway...
Any help about it? Thanks a lot...