[ic] Links

Kevin Walsh kevin at cursor.biz
Wed Feb 9 16:55:31 EST 2005


Joshua Lavin [joshua at kingdomdesign.com] wrote:
> I just want to be clear on the use of regular <a href=""> links vs. the
> page or area tags. 
> 
> It seems to me that if I use regular links, I risk losing session info,
> unless a cookie is set. Aside from this, are there any other problems I
> should be aware of?
> 
The [area] and [page] tags (etc.) will do the following:

    * Take care of the session ID specification in the URI, if necessary.

    * Ensure that any characters that are invalid in a HTTP URI are
      properly encoded.

    * URI arguments (if specified, automatically generated or both) will
      be properly delimited and encoded.

    * Generate a HTTPS URI, instead of HTTP, if the target page is in
      the AlwaysSecure list or the secure=1 argument is specified.

    * A bunch of other things.

You should never hard-code HREFs in Interchange-driven pages unless
the target page is outside of Interchange's control.  I.e. it points
to a different website.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/



More information about the interchange-users mailing list