How to remove PHPSESSID?

Discussion in 'PHP' started by hotpop, Feb 3, 2007.

  1. #1
    I found that there has a PHPSESSID in my site's URL, it's not SEF, so how to remove it?
    Thanks in advance
     
    hotpop, Feb 3, 2007 IP
  2. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    OK you'll have to be more specific. What type of site is it ? Do you run some forum script ? If yes which one.
     
    maiahost, Feb 3, 2007 IP
  3. hotpop

    hotpop Peon

    Messages:
    2,059
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Below is my site, please take a look,thanks
    http://www.javaresources.org/showcategory.php?cid=21&PHPSESSID=5a482c43f045396de092f0d6687b8b6a
    Code (markup):
     
    hotpop, Feb 3, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Try adding this line on top of your script.

    
    ini_set('url_rewriter.tags', null);
    
    PHP:
    Or
    
    ini_set('session.auto_start', '0');
    
    PHP:
    if your site doesn't require sessions, but it's enabled by default.

    Note that the URL rewriting is required for users who don't have cookies enabled.
     
    nico_swd, Feb 3, 2007 IP
    hotpop likes this.