I have a web app, built using frames.  The center frame is set up to display the index.htm page.  I want to dynamically add data to this on login and logout.  Upon login, I want to display a welcome message along with the user name, which I have stored in a session variable (PatientName).  Upon logout, I want to display a thankyou message and some links to educational materials.  I realize I can use two different pages, the index for login and a nother page, such as logout.htm.  
     I have experimented with tags, such as <!--Net:s:PatientName -->, in an attempt to display the patient name.  I have created a source procedure with this tag in the XHTML section.  I then call this as <!-- Net:MySourceProc --> but have not been successful.
     Can anyone help and show me the right way to do this?
Thanks,