/    Sign up×
Community /Pin to ProfileBookmark

Forcing a browser to not save as a cookie

Is it possible to tell any browser to not save an image as a cookie?

The way my new counter works, is that it loads the image from the server, using the same image link, so the computer just loads the image from cookies, which doesn’t help becuase the counter doesn’t increase (picture wise, technically it does, but you can’t see it).

Thanks!

to post a comment
HTML

11 Comments(s)

Copy linkTweet thisAlerts:
@Rick_GarrisonauthorJul 25.2003 — This question was almost off the first page as soon as I posted it since, very strangly, about 13 people posted just after me. With only 10 views so far, most probably mine, I have decided to reply back, to hopefully get some help ?
Copy linkTweet thisAlerts:
@pyroJul 25.2003 — Maybe I wasn't the only one who didn't know what you meant. Images aren't stored in cookies. Maybe you meant your temp directory? Anyway, try this out:

<meta http-equiv="cache-control" content="no-cache, must-revalidate">

<meta http-equiv="pragma" content="nocache">
Copy linkTweet thisAlerts:
@Rick_GarrisonauthorJul 25.2003 — Oh, sorry ? it is the temp folder-

is there a code just to prevent a certain image from loading? Cause, it would be nice to have all the other images load
Copy linkTweet thisAlerts:
@pyroJul 25.2003 — Here's what I would try (not sure if it will work).

Append a dynamic query string to your image, either using serverside code (best) or javascript. This should (in theory) cause the image to reload everytime. Something like this (but a dynamic query string, of course):

<img src="yourimage.gif?1032918">
Copy linkTweet thisAlerts:
@Rick_GarrisonauthorJul 25.2003 — Well, thanks for the help, but I couldn't get it to work- problem is, with the counter, it loads a page and not really an image- I mean, sure it loads an image, but I have to link to a page (which isn't an image, so the code didn't quite work)

whew, if you can understand that, lol :rolleyes:
Copy linkTweet thisAlerts:
@pyroJul 25.2003 — And what I'm saying is to use some code like this:

.php
[code=php]<?PHP
$num = rand (0,1000000);
echo "<img src="yourimage.gif?$num">";
?>[/code]


Which will dynamically change the query sting every time you load the page (if you also use the no-cache code I gave you)
Copy linkTweet thisAlerts:
@Rick_GarrisonauthorJul 25.2003 — Does it work with just pages (see above)

My counter link:

http://counter.digits.com/wc/-d/4/-f/BBBBBB/BarbWire

[IMG]http://counter.digits.com/wc/-d/4/-f/BBBBBB/BarbWire[/IMG]
Copy linkTweet thisAlerts:
@pyroJul 25.2003 — I don't think I understand what you are asking...
Copy linkTweet thisAlerts:
@Rick_GarrisonauthorJul 25.2003 — Ok, I'll try this ? :

I have a counter on my website that links to another website (you know, a free counter)

Now, I'm having a problem with the counter becuase evertime I view my website, the counter number does not increase.

On the site that hosts my counter, they say that happens becuase their counters load images to increase the numbers

But in doing so, the image is saved in your TEMP folder/ cache, whatever, so the counter appears to not be increasing.

Now, as soon as the image in the TEMP folder is deleted, then the counter will load normally, but then be stored in TEMP again, and go through the same problems.

So, I was wondering if their was a way to force a browser to not store the link in your TEMP/cache folder-

The only hard part, which I think is where I might confuse people, is that the link I must put on my website to view the counter, does not link to an image- it links to an actual webpage, so theoretically, I want to force a browser to not store the webpage in your TEMP/cache folder.



There, I hope that helps, lol ?
Copy linkTweet thisAlerts:
@pyroJul 25.2003 — As I said earlier, to disable the catching of a page, you will need to use something like this:

<meta http-equiv="cache-control" content="no-cache, must-revalidate">

<meta http-equiv="pragma" content="nocache">
Copy linkTweet thisAlerts:
@Rick_GarrisonauthorJul 26.2003 — But, I can't change the code for the page- the page I want to not have loaded is on some other free sever (not mine) so, I can't change the HTML coding ?
×

Success!

Help @Rick_Garrison spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...