If you put it in your application.cfm, it will be applied to all pages.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 22 July 2006 19:54
To: CF-Talk
Subject: Re: Mysterious SESSION variable behaviour

James...

Thanks for the input. Where would that code go? I've only got one CFM page
(two really counting App.cfm), index.cfm and that doesn't even have any CF
code in it. Everything is contained in my CFC file. Should those header
lines go in App.cfm?



> It's caching, most likely. Your copy of IE will be set to check for 
> new pages "automatically" which is MS speak for "in a broken fashion"
> so it doesn't work well; however it is the default and it's what many 
> of your visitors will have set.
> 
> Use no-cache headers to stop this:
> 
> <cfheader name="Pragma" value="no-cache"> <cfheader 
> name="Cache-Control" value="no-cache">
> 
> 
> On 7/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > http://www.commadelimited.com/recipes/
> >
> > I've got a cookbook application I'm building. It allows the user to 
> > browse recipes, then add them to their "grocery list". When the "add 
> > to grocery
> list"
> > button is clicked, it appends the ID for that recipe to
> SESSION.grocerylist. It
> > then runs a js function which runs a query against the database 
> > using the contents of the SESSION variable as an IN statement. The 
> > long and short of
> it
> > is that when you "add to grocery list", the recipe should save to 
> > the
> SESSION
> > var and show up in the bottom left corner.
> >
> > So it does this...sort of. In Firefox it works perfectly, but in IE, 
> > the
> grocery
> > list gets "forgotten" until you add another item. Try it...add a 
> > recipe and
> it
> > shows up just fine. BUT, refresh the page and it disappears until 
> > you add another recipe at which time you'll see both, until you 
> > refresh the page again.
> >
> > I suspect it has something to do with the fact that the current page 
> > never
> gets
> > submitted but I'm not sure. I've tried everything I can think of but 
> > can't
> come
> > up with an ideal solution.
> >
> > My next step would be to create a lookup table in the database and 
> > store
> the
> > session id and the recipe id. Then I could use that instead of the 
> > session variables. I'm not certain that would work either as the 
> > site works just
> fine
> > in Firefox.
> >
> > Anyone have input or ideas? I'd really love to hear them.
> >
> > 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247413
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to