Use array_pull for session pull
Use pull for session initializeLocalBag
Merge pull request #5117 from lucasmichot/4.2-session-pull

[4.2] Session : use array_pull for session pull