Solved

Clear Cache in coldfusion - profile mismatch happened

Posted on 2013-05-10
6
370 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
  • 3
  • 2
6 Comments
 
LVL 28

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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 28

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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