Booyah! That did it. Thanks loads James. Any idea why FF doesn't do it too?
Think it's just some sort of setting in the browser?

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 9:52 AM
To: CF-Talk
Subject: Re: Mysterious SESSION variable behaviour


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/groups/CF-Talk/message.cfm/messageid:247484
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to