Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

Clear Cache in coldfusion - profile mismatch happened

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
koila
Asked:
koila
  • 3
  • 2
1 Solution
 
Pravin AsarCommented:
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
 
SidFishesCommented:
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
 
koilaAuthor Commented:
how I can have a validate sessions or handel them incoreectly.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
Pravin AsarCommented:
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
 
koilaAuthor Commented:
Okay I will review this...
0
 
koilaAuthor Commented:
thank you please help me with my other questions.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now