Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Increase in Web app support calls fixed by clearing browser cache

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Viewers will learn how to turn a Live Set into a compressed Live Pack file, and how to install Live Packs. Make: File > Collect All And Save: File > Manage Files: Click Manage Project: Click Create Pack: Select save location: Install: Doub…
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…

722 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