SessionID in URL... How to avoid ?

Discussion in 'PHP' started by fatabbot, Sep 18, 2006.

  1. #1
    Sometimes when i search google, i see a site of mine show up with a link with SID= ... in it ?

    How can this be avoided? When i go to the site in question i dont even see the SID in the url ...
     
    fatabbot, Sep 18, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What script are you using on the site? The person who made it should be able to help.
     
    mad4, Sep 18, 2006 IP
  3. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #3
    What script ?
    All code is custom made in php by myself.
     
    fatabbot, Sep 18, 2006 IP
  4. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #4
    The SID is not showing in my browser when i start a new session.
     
    fatabbot, Sep 18, 2006 IP
  5. discoverclips

    discoverclips Peon

    Messages:
    491
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could try this:

    At the top of the php file:
    ini_set('session.use_trans_sid',false);
    PHP:
    if that doesn't work, try adding in .htaccess:
    php_flag session.use_trans_sid off 
    Code (markup):
     
    discoverclips, Sep 18, 2006 IP
  6. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #6
    Thanx man, i put the line in my htaccess file.
    That was the code i was looking for... It's more SEO-friendly.
     
    fatabbot, Sep 18, 2006 IP