473,224 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

annoying/odd IE behaviour with sessions

PI
Hi Guys,
I need some with this please.

I have a bit of code which stores user selections within a cart and
persists the cart using sessions. The user may at any time click a
button to view the contents of his/her cart. This functionality
behaves as expected with Mozilla Firefox, Opera, Safari and Chrome.
IE, IE 7 to be precise however will not show the current
status(content)of the cart until/unless the browser is manually
refreshed/reloaded. This occurs with other IE installations I have
checked so it's not specific to my machine (perhaps due to installed
plugins or updates). I have right here another reason why the world
should quit IE altogether but...

I need some help with this please. is there a hack to this? Perhaps
asking IE to autorefresh? Or a more elegant way of solving this
problem. Thanks.

Regards,
pi
Oct 1 '08 #1
7 1626
Message-ID:
<dd**********************************@u65g2000hsc. googlegroups.comfrom
PI contained the following:
>The user may at any time click a
button to view the contents of his/her cart.
Does this involve a round trip to the server?
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Oct 1 '08 #2
PI
On Oct 1, 10:06*am, Geoff Berrow <blthe...@ckdog.co.ukwrote:
Message-ID:
<dd13adf3-6464-4c91-9abc-28d82fe3e...@u65g2000hsc.googlegroups.comfrom
PI contained the following:
The user may at any time click a
button to view the contents of his/her cart.

Does this involve a round trip to the server?
--
Geoff Berrow *0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011http://slipperyhill.co.uk-http://4theweb.co.uk
Thanks Geoff,
it actually does a trip to the server to retrieve the current contents
of the cart - is there something I should look at a little more
closely? Thanks again
Oct 1 '08 #3
Message-ID:
<48**********************************@h60g2000hsg. googlegroups.comfrom
PI contained the following:
>Thanks Geoff,
it actually does a trip to the server to retrieve the current contents
of the cart - is there something I should look at a little more
closely?
Just wondered if it was a bit of Javascript that wasn't working in IE7.
Obviously not. Here are some things to try.

Make sure all your html is correct, and all form tags are correct etc
Validating the code may help.

Strip away all code to leave the bare minimum that still displays the
problem. This often identifies the problem

You could try adding a random query string to the URL eg

<form method='post' action = '<?php echo
$SERVER['PHP_SELF']."?t=".time(); ?'>

//cart refresh button etc

</form>
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Oct 1 '08 #4
PI wrote:
Hi Guys,
I need some with this please.

I have a bit of code which stores user selections within a cart and
persists the cart using sessions. The user may at any time click a
button to view the contents of his/her cart. This functionality
behaves as expected with Mozilla Firefox, Opera, Safari and Chrome.
IE, IE 7 to be precise however will not show the current
status(content)of the cart until/unless the browser is manually
refreshed/reloaded. This occurs with other IE installations I have
checked so it's not specific to my machine (perhaps due to installed
plugins or updates). I have right here another reason why the world
should quit IE altogether but...

I need some help with this please. is there a hack to this? Perhaps
asking IE to autorefresh? Or a more elegant way of solving this
problem. Thanks.

Regards,
pi
I suspect IE 7 is caching the page. If that's the case, there isn't
much you can do from the PHP end. You could try alt.html for ways to
convince IE not to cache the pages.

Alternatively, you should be able to use AJAX to do the refreshing -
that would be comp.lang.javascript.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 1 '08 #5
PI
On Oct 1, 11:51*am, Jerry Stuckle <jstuck...@attglobal.netwrote:
PI wrote:
Hi Guys,
I need some with this please.
I have a bit of code which stores user selections within a cart and
persists the cart using sessions. The user may at any time click a
button to view the contents of his/her cart. This functionality
behaves as expected with Mozilla Firefox, Opera, Safari and Chrome.
IE, IE 7 to be precise however will not show the current
status(content)of the cart until/unless the browser is manually
refreshed/reloaded. This occurs with other IE installations I have
checked so it's not specific to my machine (perhaps due to installed
plugins or updates). I have right here another reason why the world
should quit IE altogether but...
I need some help with this please. is there a hack to this? Perhaps
asking IE to autorefresh? Or a more elegant way of solving this
problem. Thanks.
Regards,
pi

I suspect IE 7 is caching the page. *If that's the case, there isn't
much you can do from the PHP end. *You could try alt.html for ways to
convince IE not to cache the pages.

Alternatively, you should be able to use AJAX to do the refreshing -
that would be comp.lang.javascript.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Thanks Geoff/Jerry for your assistance, the problem persists; but I am
convinced that Jerry's suspicion of IE caching is the problem. I have
tried to cautiously tweak one or two runtime configuration relating to
sessions such as session.cache_expire and session.cache_limiter. This
has not worked. I have also tried using header statements such as
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') and header('Pragma:
no-cache') to force IE to 'forget'. This has not worked either. I also
tried putting it on the html head as in: <meta http-equiv="expires"
content="Mon, 26 Jul 1997 05:00:00 GMT"/ and it still won't work. IE
7 is so annoying that even when I put an echo statement on the code,
reload the browser to display the statement (and it does cos the page
was reloaded), I then removed the echo statement from the code, close
the browser altogether and restart it, the crazy thing still outputs
the 'non-existent' echo statement! What in the world can I do? My
Javascript is not up to speed, so AJAX? except you could show me some
nifty code that I could customize. Thanks a lot.
Oct 1 '08 #6
Message-ID:
<ef**********************************@m44g2000hsc. googlegroups.comfrom
PI contained the following:
>What in the world can I do?
Did you try my random query string idea?
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Oct 1 '08 #7
PI
On Oct 1, 1:26*pm, Geoff Berrow <blthe...@ckdog.co.ukwrote:
Message-ID:
<ef461681-49dd-4e8a-9266-49bb4a52d...@m44g2000hsc.googlegroups.comfrom
PI contained the following:
What in the world can I do?

Did you try my random query string idea?
--
Geoff Berrow *0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011http://slipperyhill.co.uk-http://4theweb.co.uk
Hi Geoff,
thanks I finally got this issue sorted based on the information
available on http://support.microsoft.com/kb/234067
hope this helps someone.

Thanks
Oct 1 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Anja | last post by:
Hi, At the end of one of my php pages, I have a statemtent echo "<meta http-equiv=\"refresh\" content=\"0; url=Master.php\"> " ; which works well: it redirects to my page 'Master.php'. But,...
45
by: Jordan Rastrick | last post by:
Can anybody please give me a decent justification for this: class A(object): def __init__(self, a): self.a = a def __eq__(self, other): return self.a == other.a s = A(3)
0
by: Daniel Lidström | last post by:
Hi, why is the cursor placed in the output view after a completed build? Also, why when I type F4 to find out errors, is the cursor still in the output view? Visual Studio 6.0 moved the cursor...
15
by: John Howie | last post by:
I've found very unusual behavious when using sessions on two different servers. I'm using sessions to handle simple log in. When the form submits the values are checked against a MySQL table. If...
6
by: per9000 | last post by:
An interesting/annoying problem. I created a small example to provoke an exception I keep getting. Basically I have a C-struct (Container) with a function-pointer in it. I perform repeated calls...
4
by: helenwheelss | last post by:
Access 2003, using a bound form. I'm seeing rather annoying behaviour when editing data in a control with a default value. It only happens when the form is on a new record. A specific...
2
by: BLUE | last post by:
FirstClass members: - static int counter; - SingletonClass sc = SingletonClass.Instance; Moreovere FirstClass uses a static class named SecondClass with a static property...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
2
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi Guys, I'm using dreamweavers login behaviour to log people in, I've managed to manipulate it a little as I have many sites using the same database, but I'd like to manipulate it a little...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.