One of the things I would like to see built in to a future version of
the Framework, is the ability to track previous page requests in the
same way that you are tracking session.previousModule.
This would allow us to more easily do things like build breadcrumb
trails, etc.
Firewall software are blocking CGI.HTTP_Referer now, so that is not a
good option. (BTW, I noticed the use of CGI.Referer in your
EmailThisPageForm.cfm template. Are they synonymous?)
Also, right now if I am logged in and just enter the url to an action
page, *bam*, you get a nice ugly error. I suggest that we should be
able to use this session/cookie previousPage to redirect the user to a
page that doesn't blow up. For example, a somebody goes straight into
CompanyEditAction.cfm, for instance. If they weren't referred by the
CompanyEditForm.cfm page, you can redirect them to the CompanyList.cfm
page, so there is no error generated.
<!--- Reroute back to list form if referer not correct --->
<cfif Session.PreviousPage Does Not Contain "CompanyEditForm.cfm">
<cflocation url="CompanyListist.cfm">
</cfif>
David gave me a good idea for this using CommerceBlocks a couple years
ago, and it worked well but I have yet to get it to work correctly in Plum.
Something to think about...
Jeff
**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:
http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************