tags:

views:

39

answers:

2
+1  A: 

You forgot session_start() on download-software.php You must always call session_start() before any html data to be able to use $_SESSION in your script

MatTheCat
@MatTheCat - added it, still doesn't work
Dirty Bird Design
On download-software.php, what print var_dump($_SESSION) ?
MatTheCat
on download-software.php I added "echo $_SESSION['authenticated'];" I think that's the same as var_dump($_SESSION) and it displays "yes" its getting the value "yes" regardless of where the page comes from
Dirty Bird Design
with var_dump... it prints "array(1) { ["authenticated"]=> string(3) "yes" "
Dirty Bird Design
Is != 'yes' giving it the value 'yes'?
Dirty Bird Design
Maybe weird boolean issue, try if($_SESSION['authenticated'] !== 'yes')
MatTheCat
@Dirty you *are* restarting the browser in between attempts to delete the previous session, right?
Pekka
@Pekka - yes, I was but it got me to look close at the code, I had a ":" instead of a ";" at the end of the header line. Thanks all!
Dirty Bird Design
Dirty Bird Design
+2  A: 

You need to add another session_start() to the beginning of download-software.php to resume the session you started from download-registration.php.

villecoder
@vilecoder - added it, still doesn't work
Dirty Bird Design