Link Problem.....

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

    Link Problem.....

    Hello friends,

    I need some help for link redirect. I am currently working with a b2b
    site. I had define some rules in htaccess but due to auto append of
    PHPSessionID at the end of link I could not do it properly so can any
    one help me how to avoid that auto appand on phpsessionid at the end of
    link.

    for example I have a link like:

    .xyz is for every website, everywhere.® We offer the most flexible and affordable domain names to create choice for the next generation of internet users.


    But it will create:
    .xyz is for every website, everywhere.® We offer the most flexible and affordable domain names to create choice for the next generation of internet users.


    So I need to remove tht PHPSESSID from above link I need link as i
    supplied,.

    So Please help me to came out from this problem.

    With Regards,
    Mitul Patel.

  • Erwin Moller

    #2
    Re: Link Problem.....

    Mitul wrote:
    [color=blue]
    > Hello friends,
    >
    > I need some help for link redirect. I am currently working with a b2b
    > site. I had define some rules in htaccess but due to auto append of
    > PHPSessionID at the end of link I could not do it properly so can any
    > one help me how to avoid that auto appand on phpsessionid at the end of
    > link.
    >
    > for example I have a link like:
    >
    > http://www.xyz.com/test.html
    >
    > But it will create:
    > http://www.xyz.com/test.html?PHPSESS...08f97d004ddc1a
    >
    > So I need to remove tht PHPSESSID from above link I need link as i
    > supplied,.
    >
    > So Please help me to came out from this problem.
    >
    > With Regards,
    > Mitul Patel.[/color]

    Hi Mitul,

    I think you better find out WHY that is appended. :-)
    PHP will propagate the PHPSESSID via url-rewriting if it cannot set a
    cookie.
    So don't remove it, or you will loose the session.

    You can modify this behaviour in php.ini globally or on a per-script basis
    with ini_set().

    the following runtime configuration options might be of interest for you:
    use_cookies
    use_only_cookie s
    url_rewriter.ta gs

    Read more here:


    Regards,
    Erwin Moller

    Comment

    • Jerry Stuckle

      #3
      Re: Link Problem.....

      Mitul wrote:[color=blue]
      > Hello friends,
      >
      > I need some help for link redirect. I am currently working with a b2b
      > site. I had define some rules in htaccess but due to auto append of
      > PHPSessionID at the end of link I could not do it properly so can any
      > one help me how to avoid that auto appand on phpsessionid at the end of
      > link.
      >
      > for example I have a link like:
      >
      > http://www.xyz.com/test.html
      >
      > But it will create:
      > http://www.xyz.com/test.html?PHPSESS...08f97d004ddc1a
      >
      > So I need to remove tht PHPSESSID from above link I need link as i
      > supplied,.
      >
      > So Please help me to came out from this problem.
      >
      > With Regards,
      > Mitul Patel.
      >[/color]

      Mitul,

      You can still redirect with .htaccess, even though a session id is
      appended. Try asking for help in an Apache newsgroup such as
      alt.apache.conf iguration.


      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      Working...