Search results for 'PHP.INI'. 1 post(s) found.
This commands disables php from rewriting URLs to add a phpsessid, and forces the use of cookie sessions instead. Using cookies is largely thought of as the preferred way to use sessions - both more secure and better for SEO. This can be accomplished by setting the appropriate values in PHP.INI, or at runtime. This snippet shows a runtime example:
<?php
//These commands must be set BEFORE the session is started
ini_set('session.use_trans_sid', false);
ini_set('session.use_only_cookies', true);
ini_set('url_rewriter.tags', '');
//start session...
?>
//These commands must be set BEFORE the session is started
ini_set('session.use_trans_sid', false);
ini_set('session.use_only_cookies', true);
ini_set('url_rewriter.tags', '');
//start session...
?>
Another posts included in "PHP"
| How to make random number ? (0) | 2007/10/16 |
| form action - detect form post (0) | 2007/10/16 |
| for loop - simple (0) | 2007/10/16 |
| How to check if a file exists ? (0) | 2007/10/16 |
| How to include a file with error reporting ? (0) | 2007/10/16 |
| PHP if...else... example (0) | 2007/10/16 |
| PHP form handling example in single page (0) | 2007/10/16 |
| How to get reffering URL ? (0) | 2007/10/16 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/28 22:52
moneyideas
-
Subject different money making ideas
2010/01/29 07:09
moneyideas
-
Subject different money making ideas
2010/01/31 16:42
moneyideas

Prev

Rss Feed