Recently I\'ve noticed that many blank sessions are being created, I\'m not sure why though as I believe I\'m doing everything the correct way.
At the moment we crea
Shouldn't header("Location: $_SERVER[HTTP_REFERER]"); need to be header("Location: $_SERVER['HTTP_REFERER']"); ? Or is that just something stupid.
header("Location: $_SERVER[HTTP_REFERER]");
header("Location: $_SERVER['HTTP_REFERER']");
EDIT:
According to PHP.net you should use the delete_old_session parameter. Have a look HERE
delete_old_session