Re: session_destroy(); on submit?

From: Date: Wed, 22 Jan 2003 02:16:34 +0000
Subject: Re: session_destroy(); on submit?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25025@lists.php.net to get a copy of this message
on 1/21/03 9:19 PM, Addison Ellis at addison@bellsouth.net appended the following bits to my mbox: > hello, > will the following work or should i be attempting something else? > > </form> > <input type="submit" name="submit" value="Submit" > onClick="<?session_unset();,session_destroy();?>"> > <input type="hidden" name="url" > value="http://www.etc.com"> > thank you and best, addison No, it will not work. PHP is server side, JavaScript (onClick, etc.) is client side. Have the form submit to a PHP page that has the session functions at the top. HTH. Sincerely, Paul Burney <http://paulburney.com/> Q: Tired of creating admin interfaces to your MySQL web applications? A: Use MySTRI instead. <http://www.burney.ws/software/mystri/>

« previous php.db (#25025) next »