Go Back   Christian Guitar Forum > Community > Academic > Computers
Register FAQ Members List Calendar Arcade Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 09-20-2002, 11:46 PM   #1
long live indie
 
timberwolf_s's Avatar
 

Joined: Dec 2001
Location: florida
Posts: 321
Send a message via AIM to timberwolf_s
cookie deleter javascript

a few of the users of my website are having trouble seeing new content after it's updated. i'm guessing this is a problem with cookies? can javascript check if there is already a cookie for my page, and if it is not identical delete it? or do i have no clue what i'm talking about. i don't have any other scripts concerning cookies on my pages. thanks.

__________________
<br>
<table align="center" border="0" cellspacing="3" cellpadding="1" bgcolor="#006600" width="200">
<tr align="center" valign="middle"><td>
<font size="5" face="mistral" color="aqua">my sig sucks</font></td></tr>
<tr align="center" valign="middle"><td><a href="http://sixandonehalf.tk" target="_blank"><font size="6" color="black" face="bauhaus 93">6½.tk</font></a></td></tr>
<tr align="center" valign="bottom"><td><font size="2" color="#0000CC"><b>penfold rocks</b></td></tr>
</table>
AIM me - <font color="#006600"><b>spenwah</b></font>
timberwolf_s is offline   Reply With Quote
Sponsored Links
Old 09-21-2002, 11:13 AM   #2
hey hey hey
 
BlazeQ's Avatar
 

Joined: Jul 2001
Location: USA
Posts: 626
Send a message via ICQ to BlazeQ Send a message via MSN to BlazeQ Send a message via Yahoo to BlazeQ
No it isn't a problem with cookies, it's a problem with caching. Caching is when a persons computer downloads a webpage and stores the files so that the next time the person returns the pages don't have to download again.

The people can either use the Refresh button on the browser or you can insert this code in the header of the page to prevent caching:

PHP Code:
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
<
META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<
META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"
Hope this helps,
BlazeQ
__________________
BlazeQ ~ Creation in Digital ~ contrapalen.com

You have the right to freedom of speech, freedom of worship, from want... from fear... these rights would not exist without a fifth... The right to protect all other freedoms, By whatever means necessary. It's my freedom. It's my duty. It's my war. - Tom Clancy's Splinter Cell
BlazeQ is offline   Reply With Quote
Old 09-27-2002, 02:07 PM   #3
Registered User
 
Phil's Avatar
 

Joined: Jul 2001
Location: Jax, FL
Posts: 9,937
Quote:
Originally posted by BlazeQ
No it isn't a problem with cookies, it's a problem with caching. Caching is when a persons computer downloads a webpage and stores the files so that the next time the person returns the pages don't have to download again.

The people can either use the Refresh button on the browser or you can insert this code in the header of the page to prevent caching:

PHP Code:
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
<
META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<
META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"
Hope this helps,
BlazeQ
Can the same thing be done in ASP using response.expires? If so, what's the difference?
Phil is offline   Reply With Quote
Old 09-27-2002, 02:26 PM   #4
Registered User
 
3e3c3e's Avatar
 

Joined: May 2001
Location: PA
Posts: 2,054
Quote:
Originally posted by Phil
Can the same thing be done in ASP using response.expires? If so, what's the difference?
You can do the same thing by doing a:
PHP Code:
<% Response.CacheControl "no-cache"
Response.AddHeader "Pragma""no-cache" %> 
Response.ExpiresAbsolute #Jan 01,1990 12:00:00# 
Response.Expires = -%> 
As for the difference, with Response.Expires can be set on specific things. I've seen a lot of people us it to set a link to expire. So after so many minuites or so the link will not be cached and will need to be reretrieved.
Some say that there are problems with the Response.Expire so they us the META tags. I've never really found that to be true, but I never really tested it a whole lot.

-3e3c3e
__________________
| Journal | 3e3c3e.com |

3e3c3e is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:18 AM.