Forum Moderators: coopster

Message Too Old, No Replies

Using relative links to navigate my site

Trying to retain _SESSION variable while naviagating site

         

calvinmicklefinger

12:37 am on Jan 30, 2005 (gmt 0)

10+ Year Member



I am using the Apache mod_rewrite to make URL's without a query string, and I want to track the visitor information while the visitor navigates my site.

I use a URL similar to [domain.com...] where the number identifes the referror.

The Apache mod_rewrite modifies the path to call the correct page while the PHP explode function uses the parts of the URI as names of files when the include directive is used.

I have a problem writing my links, because I want to hide the true path of my files from a user who is looking at the source, but I also want to retain the _SESSION variables as the user navigates.

I do not want to create a fully qualified path in my link, such as /var/www/somedir/filname, and if I use [domain...] then all session information is lost. My host indicates that in their system, a filename would be located without a fully qualified path, if it was in a lower directory, but I have not been able to get it to work.

Can anyone give me some advice?

Many thanks.

calvinmicklefinger

1:01 am on Jan 30, 2005 (gmt 0)

10+ Year Member



Solved...

Hosting support was advising a ./ infront of a relative path, while experimentation removed the leading dot, leaving / only. Kept relative, kept session.

Many thanks anyhoo.