Link Problem.....

This is a discussion on Link Problem..... within the PHP Language forums, part of the PHP Programming Forums category; Hello friends, I need some help for link redirect. I am currently working with a b2b site. I had define ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-06-2006
Mitul
 
Posts: n/a
Default 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:

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.

Reply With Quote
  #2 (permalink)  
Old 03-06-2006
Erwin Moller
 
Posts: n/a
Default Re: Link Problem.....

Mitul wrote:

> 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.


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_cookies
url_rewriter.tags

Read more here:
http://nl2.php.net/manual/en/ref.session.php

Regards,
Erwin Moller

Reply With Quote
  #3 (permalink)  
Old 03-06-2006
Jerry Stuckle
 
Posts: n/a
Default Re: Link Problem.....

Mitul wrote:
> 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.
>


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.configuration.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0