The encode tag checks to see that the user has a session and the
session id did not come in via a cookie, if these are both true
the body of the tag is searched for relative URL references and they
are replaced with versions that contain the session id.