Forums
This topic is locked
Template Site and cleaning up the the URLS
Posted 07 Jan 2005 02:13:49
1
has voted
07 Jan 2005 02:13:49 colin hart posted:
I am creating about a dozen template sites for our agents (real Estate company). I basically created all the pages and simply made the start page = something like thisdefault.asp?UserID=12, that works great as I put that in IIS and when the visitor hits that initial page it just shows like
www.agent.com. My question is this. on that front page say I have a page for ABOUT ME, well in order to get that link to show the proper agents BIO page I would need it to look like aboutme.asp?UserID=12. I am trying to clean that up to just be AboutMe.asp. This is mainly for text links.
any suggestions?
Replies
Replied 19 Jan 2005 10:52:39
19 Jan 2005 10:52:39 zaher haj younes replied:
if i got you right ..this is the solution
in default.asp:
session("Aboutid" = request.querystring("userid"
in aboutme.asp :
userid= session("Aboutid"
it is better to store the pageid in database .
in default.asp:
session("Aboutid" = request.querystring("userid"
in aboutme.asp :
userid= session("Aboutid"
it is better to store the pageid in database .
Replied 19 Jan 2005 11:11:29
19 Jan 2005 11:11:29 Chris Charlton replied:
I'd try saving their userID's in a SESSION variable, then you can verify if the session variable exists, and if so then show content (record, etc.).
That will reduce your GET variables (querystring).
That will reduce your GET variables (querystring).