I found this post about restore_session, which seems to solve the problem:
VCL for PHP :: View topic - Avoid "?restore_session=1" and keep session data
Question: Wouldn't it be easier to just get rid of the GET-variable "restore_session" if it exists?
Something like
PHP Code:
if (isset($_GET['restore_session']))
unset($_GET['restore_session'])
If this is done right at the top of the PHP file, it cannot do any harm and it's only one line to add instead of the solution in that post.
It seems to work fine, or do I miss anything?