lorenheart
New Member
I've got a script that sets some session values before redirecting to \[code\]/\[/code\] using \[code\]header()\[/code\].I've read many posts about the \[code\]$_SESSION\[/code\] variable being destroyed / lost after \[code\]header()\[/code\], even after I implemented this:\[code\]// set session heresession_regenerate_id(true);session_write_close();header("Location: /");\[/code\]\[code\]session_start()\[/code\] is set in the correct places, does anyone know of anything that I might be missing?On the index.php page I have this:\[code\]session_start();print_r($_SESSION);// outputs nothing :'(\[/code\]The code is pretty complex so will not post it all, just snippets.