Solved

Increase in Web app support calls fixed by clearing browser cache

Posted on 2007-12-04
2
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

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.
This article discusses how to create an extensible mechanism for linked drop downs.
Viewers will learn how to include realistic velocity sensitivity to their Sampler instruments. Set the Vol<Vel parameter in the Filter/Global tab to your desired setting: Gather samples of hits of various intensity, and drag/drop into Velocity zon…
Viewers will learn how to use LFOs to modulate the sound of their Sampler instruments. Click the Modulation tab in Sampler: Choose one (or more) of the three available LFOs, and click the respective button to turn it on: Select a waveform, an LF…

615 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