My php scripts!

php scripts I use.

My Photo
Name:
Location: Bucuresti, Bucuresti, Romania



Sunday, November 27, 2005

PHPSESSID and GOOGLE

PHPSESSID suck when PHP will add a unique PHPSESSID query pair to you links. It's all about session.use_trans_sid that must be off if you want Google to eat your site alive. And guess what! It's easy to set it off.
Just make a blank file with Notepad and rename it .htaccess! Open this file, paste this code:

< if module >
php_flag session.use_trans_sid off
< /if module >


Note: Remove all spaces inside < >!!!!!
... save file, upload it in your root directory.

Have fun :P

Source: Why You Should Disable PHP’s session use_trans_sid


Ah. As a bonus ... if you want .htm and .html files to execute your php scripts please add this code in the same .htaccess file:

AddType application/x-httpd-php .php .html .htm


Dont forget to upload it! :)

2 Comments:

Anonymous Anonymous said...

If it doesnt help add:
ini_set("url_rewriter.tags","");
before calling a session.
Thanks,
--
Costin

December 21, 2005 11:41 AM  
Anonymous Anonymous said...

Hello there, There's no doubt that your site could possibly be having internet browser compatibility problems. Whenever I look at your site in Safari, it looks fine however, when opening in I.E., it has some overlapping issues. I just wanted to provide you with a quick heads up! Besides that, fantastic website!

my blog: phen375

March 16, 2013 2:21 AM  

Post a Comment

<< Home