To avoid session fixation i use this code at the beginning of every PHP page:
session_set_cookie_params( 900, '/', $domain, 1, 1 );
session_start();
session_regenerate_id( true );
But if the page is refreshed too fast or in case of multiple ajax requests, the session id becomes invalid.
There is a way to avoid session fixation without this problem?