Forum Moderators: coopster

Message Too Old, No Replies

Need to return to original referrer page from x levels deep

http_referrer link

         

nrbond

2:11 am on Mar 10, 2005 (gmt 0)

10+ Year Member



Hi, All!

I can ususally find answers to my questions by lurking here, but not this time. So, I'm posting.

I'm working on a site that contains a collections of articles in the root directory. Within some of the articles, there is a link to an item in a sub-directory of root called mall. The mall is a standard e-commerce site, with multiple pages that must be processed to purchase a product. What I want to do is put a link in the mall's header, that will return the user to the original article page, regardless of how deep he is into the mall.

Any ideas on how to do this?

Thanks,
Nicole

incrediBILL

2:14 am on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try setting a cookie with the origin referer, you may have to set the cookie on the landing page within the various sites in the mall unless they are all hosted under the same domain name.

coopster

12:44 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, nrbond.

I use a similar concept, storing the page the user is on in either a cookie or a session variable.

nrbond

5:13 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



Thanks, everyone!

I was thinking that a session or cookie would be the best way, too.

Thanks again,
Nicole