For better visibility from the comments
I don't think you can create a new session without sending/receiving data from the client. There is a note on the page that you referenced (at the bottom):
You cannot destroy the session and create a session on the same request, as creating a new session involves sending session cookies back.