For this code:
page1.cfm
<form action="page2.cfm" method="post">
<input type="text" name="name" />
<input type="submit" />
</form>
page2.cfm
<cfset session.name = form.name>
<cflocation url="page3.cfm" addtoken="no">
page3.cfm
<cfdump var="#session.name#">
If you do this:
- browse to page1.cfm on any browswer
- submit the form with "value1"
- open a new tab
- browse to page1.cfm and submit the form with "value2"
- go back to the first tab and refresh the page
You will notice that the value of session.name changes on the first tab.
In this question, one of the answers is followed by the comment, "If tabbed browsing causes issue with your session variables, you are doing it wrong".
How then, do you do it properly? The objective is to preserve "value1" on the first tab and "value2" on the second.