Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Absolute and relative URLs

Status
Not open for further replies.

JontyMC

Programmer
Joined
Nov 26, 2001
Messages
1,276
Location
GB
I have a header.inc file that has some links to get around my ASP site. When I use absolute URL's the session variables disappear on the page I go to. When I use a relative URL, there is no problem, I can access the session variables. What's going on?
 
not sure - can you stick with relative URLs?

I assume the absolute URLs are within the same site?


Tony
_______________________________________________________________
 
I want to use header.inc in most of my pages, so can't use relative URL's. The URL's are in the same site.

I have a line that redirects to the login page on header.inc if the session("username") = "". So when I use relative URL, the page works. When I use the absolute URL link I get thrown back to login page....BUT, if I login again and navigate to that absolute URL it works! Almost as if the session variables were instantiated on that page from the previous attempt. I'm sure its something simple.
 
check the path. if you have a local path in the header.inc and have uploaded the file online then this might happen...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top