How to add a custom field to the session table
问题 I'm currently using Symfony 2.1.8 and the built-in PdoSessionHandler . I want to add a user_id field in the session table to identify to which (logged-in) user the session belongs. The idea is that I can force the user to log back in destroying his session. In my case it will happen if the privileges of the user are updated. I had a look to the build-in PdoSessionHandler that you can't extends because of those silly private variables. So I've tried created a new one (copy/paste) and add my