3 Replies - 864 Views - Last Post: 17 August 2010 - 06:52 PM Rate Topic: -----

#1 mpryan73  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 39
  • Joined: 05-February 10

Force fresh call to pages

Posted 11 August 2010 - 02:07 PM

On my site I have an admin toolbar that shows up on everypage if the user is logged in based on Session vararable EQ Session vararable.

After login they are direct to index.cfm and toolbar shows up. Works great. Now I have found that because the browser is caching all the pages they visit while logged in (So toolbar is visable). When they log out and so now I set Session vararable NEQ Session vararable and they are redirect to index.cfm again.

So now toolbar should not be visabe but it is untill I refresh the page and is visible on all visited page while logged in. Untill its refreshed. Can I some how force a new call to the pages.



Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Force fresh call to pages

#2 mpryan73  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 39
  • Joined: 05-February 10

Re: Force fresh call to pages

Posted 12 August 2010 - 12:52 PM

It appears I want to use <cfcache action = "flush" expireurl="*"> it seems to work. But I'm not sure if this clears all cache for all sessions or just the one that invoked this.

Does anyone know?
Was This Post Helpful? 0
  • +
  • -

#3 Craig328  Icon User is offline

  • I make this look good
  • member icon

Reputation: 1926
  • View blog
  • Posts: 3,471
  • Joined: 13-January 08

Re: Force fresh call to pages

Posted 16 August 2010 - 09:22 AM

View Postmpryan73, on 12 August 2010 - 11:52 AM, said:

It appears I want to use <cfcache action = "flush" expireurl="*"> it seems to work. But I'm not sure if this clears all cache for all sessions or just the one that invoked this.

Does anyone know?



I believe it flushes the server side page cache which means it would affect all sessions.
Was This Post Helpful? 0
  • +
  • -

#4 xheartonfire43x  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 454
  • Joined: 22-December 08

Re: Force fresh call to pages

Posted 17 August 2010 - 06:52 PM

Can you post your session check code and your session clear code for us to look at?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1