note 11854 added to ref.session.php

From: Date: Fri, 09 Mar 2001 21:51:20 +0000
Subject: note 11854 added to ref.session.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12132@lists.php.net to get a copy of this message
My comment addresses what someone wrote about appending the session id to a URL. One contributor even wrote a JavaScript snippet to do this for every URL on a page. I think the Session class in PHPLIB has two functions that accomplish the same task in a clean way. Namely: url($url): Returns a URL referencing the current session. If in GET mode, the current session id is attached to this URL, else the URL is returned unmodified. purl($url): A shorthand for print $this->url($url); http://www.php.net/manual/en/ref.session.php

« previous php.notes (#12132) next »