Solved

Clear Cache in coldfusion - profile mismatch happened

Posted on 2013-05-10
6
374 Views
Last Modified: 2013-07-03
I have two users who log in into my application from same corporate environment.  Some time, the profile mismatch happened.  When he click to update his profile, sometime they can see other profile.

What is the best code to clear the cache>

I have added this code, what would be your suggestion:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="01 Jan 1970 00:00:00 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

<cfheader name="expires" value="#now()#"> 
<cfheader name="pragma" value="no-cache"> 
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate">

Open in new window

0
Comment
Question by:koila
[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
  • 3
  • 2
6 Comments
 
LVL 29

Expert Comment

by:Pravin Asar
ID: 39156790
I am sure, your application keeps the some sort of userid.
Is there a duplicate ? conflict ?
before allowing an user to edit his profile, do you compare the session userid against the db /stored useid ?

This is kind of weird.
0
 
LVL 36

Expert Comment

by:SidFishes
ID: 39161397
this is almost certainly a session tracking problem and not a cache problem.

This is a common issue if you don't validate sessions or handle them incorrectly.
0
 
LVL 4

Author Comment

by:koila
ID: 39191545
how I can have a validate sessions or handel them incoreectly.
0
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
LVL 29

Accepted Solution

by:
Pravin Asar earned 500 total points
ID: 39191983
1. Do the username and other critical session variables for each request (done by url or otherwise via webservices).
2. If you are jumping from one application to another application [Here I mean coldfusion application], make sure you have some unique identifier set such as application name]
3. If terminating an application, force session expiration.
4. Do cache control for individual request (cfm files), if it makes sense, as now-a-days with AJAX applications, sometimes cache plays an important role in interactivity.
0
 
LVL 4

Author Comment

by:koila
ID: 39238543
Okay I will review this...
0
 
LVL 4

Author Comment

by:koila
ID: 39297427
thank you please help me with my other questions.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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