note 10485 added to Session handling functions
| From: | jr at gopinocchio dot com | Date: | Sat, 06 Jan 2001 15:55:29 +0000 |
| Subject: | note 10485 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9431@lists.php.net to get a copy of this message | ||
Hi,
I am trying to develop some dynamic content for WAP.
As you may already know WML is an XML based language.
Since Mobile phones and most other WAP devices do not support cookies, session handling with PHP has
to be done via the SID in the URL. Here is the problem I am having:
When I use this method of session management, PHP automatically appends all of my URLs with
&PHPSESSID=%sessID%. Under normal circumstance this would be fine, but since WML does not
allow the & character
.This is bad, and makes all of my links unusable.
For example:
My links as the WAP device sees them are generated to look like this:
<a href="my.php4?module=home&sub=link">Home</a>
But when try to go about this using session management, my URL gets sent like this:
<a href="my.php4?module=home&sub=link&PHPSESSID=%sessID%">Home</a>
I thought that maybe I could cheat this and just open the PHP.ini file on my server and change the
session name to amp;PHPSESSID but since its an ini file the ; character blocks the rest of
the name out on the right, and the session name becomes &
.
HELP PLEASE!
jr
http://www.php.net/manual/ref.session.php