How to remove PHPSESSID?

Discussion in 'Search Engine Optimization' started by bangers, Aug 27, 2007.

  1. #1
    Hi all,

    How do I simplify my domains so they don't have PHPSESSID?

    Now my domains look like this:

    services.html?PHPSESSID=ea352

    But I just want my domain like this:

    services.html

    Any help is much appreciated!

    Thanks!
     
    bangers, Aug 27, 2007 IP
  2. Directory4

    Directory4 Well-Known Member

    Messages:
    167
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    Insert the following code into .htaccess to remove session IDs from your website URLS

    php_value session.use_only_cookies 1
    php_value session.use_trans_sid 0

    This code tells the server to store the PHPSESSID in a cookie or not to bother. If the browser does not have cookies enabled, then the session id won’t move to the URL. This does mean that all functionality that relies on sessions will not work such as session based logins.
     
    Directory4, Aug 27, 2007 IP
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    or get your host to change this at the php.ini level - you shouldn't have to do this in your htaccess file. most hosts disable this for obvious reasons.
     
    daboss, Aug 28, 2007 IP