Having a major problem with back button

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
GHOLYOAK
Forum Newbie
Posts: 7
Joined: Wed Apr 30, 2003 7:12 am

Having a major problem with back button

Post by GHOLYOAK »

Hi,

I have developed a web site using PHP and it works just fine until the back button is pressed.

It would appear that when the back button is pressed not all the source is redisplayed so I end up with no closing </BODY> or </HTML> tags.

But even stranger is that it works fine using an internal IIS server but has this problem on an external Apache server.

I've tried adding no-cache in header() function and various settings with zlib.compression but with no success.

I've check out the HTML and CSS with W3C and all seems OK


Any help would be greatly appreciated !!


Ta !
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

You'r not using sesions?

I had this problem, that there was something changes in the sesion on the seconed page, but the first page useses this var also.
GHOLYOAK
Forum Newbie
Posts: 7
Joined: Wed Apr 30, 2003 7:12 am

Sessions ?

Post by GHOLYOAK »

Thanks for that, I am using sessions quite extensively.

I can understand how using sessions might show incorrect data but not how they stop the HTML being redisplayed properly ?

Surely the entire HTML page that was originally displayed correctly should be re-displayed from the browsers cache correctly ?

Also this wouldnt explain how it works OK on an intranet IIS (DEV) but not external internet Apache (LIVE).
[]InTeR[] wrote:You'r not using sesions?

I had this problem, that there was something changes in the sesion on the seconed page, but the first page useses this var also.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

As far as I know only IE 5+ has that problem - because it only happened on some very, very few sites I thought it was some XML-problem, but apparently, it can happen when you embed CSS into the document (and who doesn't).

Have you tried another browser?
GHOLYOAK
Forum Newbie
Posts: 7
Joined: Wed Apr 30, 2003 7:12 am

CSS

Post by GHOLYOAK »

I've tried other versions of IE but no other browsers.

May I ask how you know it can happen with embedded CSS - Is this though past experience or have you read it on another BB.?

patrikG wrote:As far as I know only IE 5+ has that problem - because it only happened on some very, very few sites I thought it was some XML-problem, but apparently, it can happen when you embed CSS into the document (and who doesn't).

Have you tried another browser?
Post Reply