Here are the code of my login page where the login script checks for the authenticity of the user and then redirects to inbox page using header function.
<
Maybe it helps others, myself I had
session_regenerate_id(false);
I removed it and all ok!
after login was ok... ouch!