SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 85 | Next

Nirav Mehta

"Mobile Web Development"

By default, session IDs are stored in
cookies. But we can pass them in the URLs to ensure our application works with
browsers that do not support cookies.
If your server allows customizing PHP configuration, you can have PHP
automatically insert session IDs in URLs and forms. Here's the magic piece of code
that gives us full session support without needing the browser to support cookies.
This code is written in a PHP file, but can be configured using the php.ini or
.htaccess file as well. Most shared hosting environments would support this.
ini_set("session.use_trans_sid", 1);
ini_set("url_rewriter.tags", "a=href,area=href,input=src,fieldset=");
ini_set("arg_separator.output","&");
session_start();
The first line enables transparent session ID support??”a mighty PHP feature that can
add session ID to the tags you specify. The second line defines the tags that will be
rewritten to include session ID. For forms, we use the fieldset tag around form fields
to pass session ID with POST data automatically.
The third line about argument separators tells PHP to use & as the argument
separator in all links it generates. This configuration is essential to make your
documents XHTML MP compliant.


Pages:
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6