Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Increase in Web app support calls fixed by clearing browser cache

Posted on 2007-12-04
2
Medium Priority
?
202 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Viewers will learn how to create a new project within Adobe Encore and the basic layout of the software.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Suggested Courses

916 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