I've solved my problem by using an alternative solution : I moved the code from the file updateSession.php into a template operator, and then it works, I can set and retrieve session variables.
Nevertheless, I'm still interessed to know why my first solution does not work, if anybody can explain it to me. emmanuel