Forum Moderators: coopster

Message Too Old, No Replies

WAP session tracking

Will PHP add the PHPSESSID query string to a wml page?

         

VectorJ

7:19 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



I'm trying to use PHP to track user sessions on a WAP page. Since cookie handling is spotty at best on mobile devices, I'm using the session id in the query string to track the user. I've set my php.ini to not use cookies in session handling, but PHP is still not inserting the session query string into the links on the pages. Could it be because PHP doesn't recognize WML and doesn't know where to put the session id?

henry0

10:37 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look PHP Manual [us2.php.net]

Excerpt from the page
<<<
Following this steps, the session is started at every page and myclass is always available, avoiding to write the session_start() function at every page.
stoiev at ig dot com
20-Mar-2002 09:10
Carefull when you are working in PHP with WML. The arg separator used to put de PHPSESSID variable in URL is '&' by default, and this cause a Compile Error in browsers:

<anchor><go href="index.php?estate=1&PHPSESSID=12345678abcde"></go>

instead of this:

<anchor><go href="index.php?estate=1&#38;PHPSESSID=12345678abcde"></go>

It?s safety include the line:
ini_set ( "arg_separator", "&#38;");

to change the arg separator, it worked in PHP 4.1.2

Another thing that the onpick tag is not defined in the url_rewriter.tags list by default(if there are others, i don?t now). This is must be added in php.ini file.

* In most case the WAP GateWay accepts cookies an the auto-transpass-SID is not necessary, it?s hard to find problems with this.
ricmarques at spamcop dot net
15-Oct-2000 05:16
Regarding session.cache_limiter :

For those of you who - like me - had trouble finding the meaning of the possible values (nocache, public and private), here's the explaination taken from the HTTP 1.1 Specification at
[w3.org...]

>>>