note 11854 deleted from ref.session by yohgaki
| From: | yohgaki@php.net | Date: | Sat, 19 Jan 2002 06:40:51 +0000 |
| Subject: | note 11854 deleted from ref.session by yohgaki | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25111@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);