Solved

Clear Cache in coldfusion - profile mismatch happened

Posted on 2013-05-10
6
373 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

749 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