"Double" PHPSESSID url problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arnaud

    "Double" PHPSESSID url problem

    Hi,
    I would like to protect myself against these two PHPSESSID I have sometimes
    in the url...
    I'm coding a session-based script which will be upload on a shared server. I
    can't control if this one will be session_use_tra ns_id = 0 or 1.

    Some users don't accept cookies, so Php can't store the session information
    this way, if the session_use_tra ns_id = 1, it will use the URL, but if it's
    disabled the only way to use the url is to manually specify in each link i
    have something like "<?echo strip_tags(SID) ?>" BUT i have no way to test if
    the server is trans_id enabled or not, so if it's the case i have two
    PHPSESSID=rando m_value in the url...

    Is there a way for a script to know if the server is session_use_tra ns_id
    enabled or not ? I didn't find any get_trans_id function...

    Thanks,
    Arnaud


  • Chung Leong

    #2
    Re: &quot;Double&qu ot; PHPSESSID url problem


    "Arnaud" <example@exampl e.com> wrote in message
    news:4110ba60$0 $29375$626a14ce @news.free.fr.. .[color=blue]
    > Hi,
    > I would like to protect myself against these two PHPSESSID I have[/color]
    sometimes[color=blue]
    > in the url...
    > I'm coding a session-based script which will be upload on a shared server.[/color]
    I[color=blue]
    > can't control if this one will be session_use_tra ns_id = 0 or 1.
    >
    > Some users don't accept cookies, so Php can't store the session[/color]
    information[color=blue]
    > this way, if the session_use_tra ns_id = 1, it will use the URL, but if[/color]
    it's[color=blue]
    > disabled the only way to use the url is to manually specify in each link i
    > have something like "<?echo strip_tags(SID) ?>" BUT i have no way to test[/color]
    if[color=blue]
    > the server is trans_id enabled or not, so if it's the case i have two
    > PHPSESSID=rando m_value in the url...
    >
    > Is there a way for a script to know if the server is session_use_tra ns_id
    > enabled or not ? I didn't find any get_trans_id function...
    >
    > Thanks,
    > Arnaud
    >
    >[/color]

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.



    Comment

    • Arnaud

      #3
      Re: &quot;Double&qu ot; PHPSESSID url problem

      "Chung Leong" <chernyshevsky@ hotmail.com> a écrit dans le message de
      news:8v2dnW6wud d8So3cRVn-pw@comcast.com. ..
      [color=blue]
      > http://www.php.net/ini_set/[/color]

      I'm afraid session.use_tra ns_id can't be set that way (php_ini_perdir and
      php_ini_system only) but your answer make me use ini_get() and that's
      perfect, thanks.

      I would be interested by reading other comments about that double PHPSESSID,
      how do you manage this thing ? Ini_get too ?

      Thanks

      Arnaud



      Comment

      Working...