session - PHP $_SESSION gets emptied on one page only -
i have custom built php application framework uses php sessions. runs through index.php, , there session_start() call @ top. each individual page instantiates 'action' class returns html via smarty engine, dumped browser right @ end of index.php.
everything works fine time, in 1 specific case $_session variable gets emptied. i'm debugging doing print_r($_session) right after session_start() , again right @ end of index.php.
on problem page (and on page), $_session vars there expected @ end of script, looking @ session storage file in /var/lib/php/sessions empty, , sure enough when loading other page first print_r shows empty array. far can tell there should no php code emptying $_session because final print_r last thing does.
so question is, have missed? i've cleared out stray closing ?> tags avoid whitespace, compared included files page works , can't see wrong. , re-iterate, no code is/should being executed between me dumping vars , them getting deleted. can think of else clear session variable?
Comments
Post a Comment