Solved

Increase in Web app support calls fixed by clearing browser cache

Posted on 2007-12-04
2
195 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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

These days socially coordinated efforts have turned into a critical requirement for enterprises.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Viewers will get an overview of how to make and use Drum Racks in Ableton Live. Load new Drum Rack into empty MIDI track: Fill rack with audio samples: Re-arrange sample slots as necessary: Adjust parameters of each slot to tailor each sound a…
Viewers will learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now