Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Refreshing the page.....
Old 09-09-2007, 03:57 AM Refreshing the page.....
Novice Talker

Posts: 7
Trades: 0
Hi, on my website I list new content daily, however when people come in to see the new content, they see the same as last time

so my question is-

How can I make my site automatically update for each time someone enters my site?

I know it's the cookies that are doing it, but how do I stop them, or make them only last 24 hours (not sure if that can be done)

Any help would be appreciated
Brent123 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-09-2007, 04:36 AM Re: Refreshing the page.....
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
The trouble you're having is that the browser is caching the content.

You can use a meta tag to prevent this on individual pages, or you can set up your web server to do it globally.

<meta http-equiv="Pragma" content="no-cache">

I found this looking around Google: Preventing Browser Cache. Finally, So You Don't Want to Cache talks about IE 5 not respecting the meta tag approach.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 09-09-2007, 09:06 AM Re: Refreshing the page.....
Novice Talker

Posts: 7
Trades: 0
Hi, thanks for the reply,

I tried everything they said, but unfortunately it didn't work.
Not sure what I'm doing wrong, if anything

Last edited by Brent123; 09-09-2007 at 11:38 PM..
Brent123 is offline
Reply With Quote
View Public Profile
 
Old 09-10-2007, 07:38 AM Re: Refreshing the page.....
NullPointer's Avatar
Will Code for Food

Posts: 2,784
Name: Matt
Location: Irvine, CA
Trades: 0
Consider using a session instead of a cookie. If you must use a cookie set the expiration.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to Refreshing the page.....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.73382 seconds with 12 queries