@Jonah, Thanks for the solution. Currently, I have been using the same way as you suggested. Was just wondering if there a different way to do the same instead of passing url variables on each page, like define once, use everywhere. (in my case session/client scope have to be ruled out)
Thanks. On Mon, Sep 19, 2011 at 12:10 PM, .jonah <jonah....@creori.com> wrote: > > Ok, that wasn't clear in the beginning. > > You want to keep track of DIFFERENT years in each window. Since they're > both in the same browser and visiting the same site, they'll be > receiving the same cookies and therefore the same session. > > To do this you'll probably need to pass the year along in the URL as you > go from page-to-page. > > On 9/19/11 8:10 AM, funand learning wrote: > > @Russ. I am not sure I understand what you are saying. > > > > if my index.cfm is as follows: > > > > <cfset StructClear(session)> > > > > <form name="frm" method="post" action="results.cfm"> > > <select name="dd_year"> > > <option value="2000">2000</option> > > <option value="2001">2001</option> > > <option value="2002">2002</option> > > <option value="2003">2003</option> > > </select> > > <input type="submit" value="Submit" name="sbtbutton" /> > > </form> > > The second page is as follows: > > *results.cfm* > > <cfset structappend(session,form)> > > <cfdump var="#session#"> > > <a href="onemorepage.cfm">Go to next page</a> > > > > *onemorepage.cfm* > > <cfdump var="#session#"> > > <a href="index.cfm">Go to search page</a> > > > > I have application.cfm too which has the following line: > > > > <CFAPPLICATION > > NAME="myapp" > > setclientcookies="Yes" > > clientmanagement="Yes" > > sessionmanagement="Yes" > > sessiontimeout="#CreateTimeSpan(1,0,0,0)#" > > applicationtimeout="#CreateTimeSpan(1,0,0,0)#"> > > > > so now the user is on 'onemorepage.cfm' and from here he opens a new > window > > using 'ctrl + N'. On new window he clicks on 'Go to search page' link, > and > > then select a dfferent tax year. Now, I want the old window to show the > old > > tax year for all pages, and new window to show new tax year for all > pages. > > > > I tested using both session/client. The problem is If I select a > different > > tax year on new window, and then refresh the old window, the old > > window shows the new value > > > > I hope I am clear. > > > > > > On Mon, Sep 19, 2011 at 10:23 AM,<> wrote: > > > >> >>C'Mon Claude, store a 4 character value to the db > >> > >> If the Tax year is the ONLY information needed, then a cookie may be > used. > >> But in my mind, there are often more informations to store about the > user, > >> like his name, eMail, address, etc. Then the database approach is > better. > >> > >> > >> > >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347526 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm