{"action":"opened","issue":{"url":"https://api.github.com/repos/silexphp/Silex/issues/1118","labels_url":"https://api.github.com/repos/silexphp/Silex/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/silexphp/Silex/issues/1118/comments","events_url":"https://api.github.com/repos/silexphp/Silex/issues/1118/events","html_url":"https://github.com/silexphp/Silex/issues/1118","id":59490973,"number":1118,"title":"PdoSessionHandler throws transaction lock","user":{"login":"rajibahmed","id":66739,"avatar_url":"https://avatars.githubusercontent.com/u/66739?v=3","gravatar_id":"","url":"https://api.github.com/users/rajibahmed","html_url":"https://github.com/rajibahmed","followers_url":"https://api.github.com/users/rajibahmed/followers","following_url":"https://api.github.com/users/rajibahmed/following{/other_user}","gists_url":"https://api.github.com/users/rajibahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/rajibahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajibahmed/subscriptions","organizations_url":"https://api.github.com/users/rajibahmed/orgs","repos_url":"https://api.github.com/users/rajibahmed/repos","events_url":"https://api.github.com/users/rajibahmed/events{/privacy}","received_events_url":"https://api.github.com/users/rajibahmed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T14:52:56Z","updated_at":"2015-03-02T14:52:56Z","closed_at":null,"body":"Hi,\r\n\r\nWe are using doctrine2 with silex. And we have a cluster of apache instances. We need to use PdoSessionHandler to store session in mysql database.\r\n\r\n````php\r\n$app['session.db_options'] = array(\r\n    'db_table'      => 'session',\r\n    'db_id_col'     => 'session_id',\r\n    'db_data_col'   => 'session_value',\r\n    'db_time_col'   => 'session_time',\r\n    'lock_mode => 2 // TRANSACTIONAL LOCKING, this needed to be set to 0\r\n);\r\n````\r\nNot Knowing this option needs to be tweaked, I lost many hours. \r\nMaybe documentation should add block about it.  "}}