note 8755 deleted from Session handling functions by sniper

From: Date: Mon, 02 Jul 2001 09:54:36 +0000
Subject: note 8755 deleted from Session handling functions by sniper
Groups: php.notes 
Request: Send a blank email to php-notes+get-14882@lists.php.net to get a copy of this message
chernyshevsky@hotmail.com has a great idea with the client-side javascript filling in the PHP SID. I have two fixes: Add this to the top of the addvar function to prevent appending to links that are javascript calls: if (href.indexOf ("javascript") != -1) return href; Add this loop to iterate the <a href ...> elements (anchors only iterates named anchors): for (i = 0; i < document.links.length; i++) { with (document.links [i]) { href = addvar (href, session_id); } }

« previous php.notes (#14882) next »