Nav Link On

iPhone Dev Forums > General Development > Web App Development > Invalidate Safari Cache

Reply

 

LinkBack Thread Tools Display Modes
Old 02-22-2010, 11:53 PM   #1 (permalink)
Junior Member
Default Avatar
 
Join Date: Feb 2010
Posts: 1
Default Invalidate Safari Cache

I am writing a web-based application for banking clients, using the safari browser. When the user logs out, I invalidate the server-side session, and the user is sent to a new page. In the HTML I try to add every meta tag I can find to invalidate the browser cache,

<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="must-revalidate, no-store, no-cache, post-check=0, pre-check=0"/>
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>


but without fail, a user can hit the back button and it shows the last page the user was in, without hitting the server. This exposes sensitive secure data like account balances and transactions.

What has to be done to tell the Safari browser to not use the cache from the back or history buttons, but hit the server instead?

Any help is appreciated,

Michael Smith
Software Engineer
Sybase / Financial Fusion
msmith6@sybase.com
801.319.7363
mike_smith_ut is offline   Reply With Quote
Old 02-23-2010, 02:58 PM   #2 (permalink)
Senior Member
 
hello24's Avatar
 
Join Date: Jan 2010
Location: London, UK
Posts: 126
Send a message via Skype™ to hello24
Default

How about logging out the user and then redirect to another page - pressing back will go to the logout page.
Also, try to actually put a date in Expires rather than 0. Anything in the past will do.

Also, Safari3 is known to break the logout for Basic HTTP authentication:
Safari 3 Breaks HTTP Authentication | The Art of Web
hello24 is offline   Reply With Quote
Reply

iPhone Dev Forums > General Development > Web App Development


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC1