Session and landing pages

Options
I am going through a list of issues I have come across over the year and submitting support tickets but this one I wanted to point out as it is a system design problem and not a bug like the others I am documenting and sending as cases.


There is some mention of this design in an old thread: https://community.blackbaud.com/forums/viewtopic/1/2313?post_id=19417#p19417


If you have ever built a site and rely on session variables within the content of a landing page you should be aware that any S80 tags used within the content area (generally included within a wrapper for instance) with an S63 tag you should note that the variables are not present but upon a reload they are.  This is because S63 is loaded BEFORE the rest of the content (yes, your wrapper elements too).  To work around the problem redeclare/populate any session variables at the top of the content on any pages that may be landed on.


I generally keep my session variables in one PageBuilder file and I include this file with an S51 tag at the top of my META element of the wrapper.  I then just reinclude this file at the top of the greeting page etc. by adding the same PageBuilder with an S51 on those pages likely to be landed upon.
Tagged:

Categories