If I understand you correctly, I would do something like:feyd wrote:Sessions must be restarted on each page request to have session data accessible to your script(s).
Code: Select all
session_start() ;
$_SESSION['AccountName'] = $lcAccountName ;
$_SESSION['PrimaryName'] = $lcPrimaryName ;
$_SESSION['SecondaryName'] = $lcSecondaryName ;
session_write_close();and something like:
Code: Select all
session_start() ;
$lcAccountName = $_SESSION['AccountName'] ;
$lcPrimaryName = $_SESSION['PrimaryName'] ;
$lcSecondaryName = $_SESSION['SecondaryName'] ;
session_write_close();
// Do some function
GetPollList($lcAccountName. $lcPrimaryName, $lcSecondaryName) ;Is there any significance to the words in the PHP manual - "it must be done before any output iis made to the browser"?
It sounds like the session id generated in the login script is of little value - at least in the scope of what I'm trying to accomplish (e.g., adding Advanced Poll)
Thanks for you guidance,
Michael