View Single Post
  #7 (permalink)  
Old 30th June 2009, 14:05
Holgerwa Holgerwa is offline
D4PHP User
 
Join Date: Dec 2008
Posts: 46
Holgerwa is on a distinguished road
Default

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?

Last edited by Holgerwa; 30th June 2009 at 14:13.
Reply With Quote
Sponsored Links