scottmitchell
Programmer
I am having a problem accessing my session variables once a session is created.
Scenario:
1. I log the user in, successfully create a session using
session_start();
session_register( "SESSION_name" );
2. I then register my variables with data from the db in the format
session_register( "SESSION_username" );
$SESSION_username = $row["dbusername"];
Subsequently, on a different secured page, I can confirm that the session vars exist--
if ( session_is_registered( "SESSION_username" ) )
--but I cannot access the data in the variable.
Any assistance with syntax, troubleshooting, etc for accessing values would be most appreciated!
Thanks,
Scott
Scenario:
1. I log the user in, successfully create a session using
session_start();
session_register( "SESSION_name" );
2. I then register my variables with data from the db in the format
session_register( "SESSION_username" );
$SESSION_username = $row["dbusername"];
Subsequently, on a different secured page, I can confirm that the session vars exist--
if ( session_is_registered( "SESSION_username" ) )
--but I cannot access the data in the variable.
Any assistance with syntax, troubleshooting, etc for accessing values would be most appreciated!
Thanks,
Scott