note 15356 deleted from function.apache-note by didou

From: Date: Mon, 31 Dec 2007 00:17:48 +0000
Subject: note 15356 deleted from function.apache-note by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134568@lists.php.net to get a copy of this message
Note Submitter: nathan at thelinuxcommunity dot org ---- Used this with mod_layout... very handy. :) Used my PHP code in my header to check session variables and validate the session. If the session is not valid, I use apache_note to tell mod_layout not to display the content page or the footer, just the error page I generate in the header page. Note: successive calls to apache_note with the same KEY overwrite the VALUE. Ie: apache_note("LAYOUT","originoff"); apache_note("LAYOUT","footeroff"); Will only send the last note. You need to do something like: apache_note("LAYOUT","originoff"); apache_note("LAYOUT-2","footeroff"); To get both variables through. How you retrieve this is obviously up to the module receiving notes, of course... --Nathan

« previous php.notes (#134568) next »