Solved

Increase in Web app support calls fixed by clearing browser cache

Posted on 2007-12-04
2
198 Views
Last Modified: 2012-05-05
We have a LAMP Web app that passes the user to a Wndows server for a streamed media presentation when a presentation is selected from a menu.  In the past few weeks we have experienced a marked increase in the number of users reporting that they are returned to the [LAMP] login when they select a presentation.  It would appear that they are not passed to the Windows server and probably lose their php session variables which would send them back to the login screen.  In every case the problem has been fixed by clearing the cache in the browser.

No major changes recently in this portion of the LAMP Web app.   I am at a loss on how to approach this.  Is there anything that we can alter in the PHP/MySQL design to affect the browser cache usage?  ave there been recent changes to IE (used by a majority of our clients) that might be causing this?
0
Comment
Question by:ttheimer
2 Comments
 
LVL 5

Accepted Solution

by:
nacker2000 earned 500 total points
ID: 20412978
Hi,

If caching is the problem then put the code below in a includes page and include it on all your pages where you want to stop caching. You may have to F5 (clear your history) for this to start working.

I have used it before and its a good way to make sure the page doesn't cache.

Note: As this modifys the page headers, the code must be before you output any information to the page, so before the <html> tag in your HTML and before you print or echo anything to the page.
<?php
	/* stop caching */
	header("Cache-Control: no-cache, must-revalidate");
	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
?>
 
<?php
	/* how to include it */
	include_once 'file_name.php';
?>

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Viewers will learn the basics of making and using Impulse Kits in Ableton Live. Load new Impulse into an empty MIDI track: Fill the 8 empty sample slots with drum samples: Adjust parameters to tailor each sound as desired: Proceed to create be…
Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question