Forum Moderators: open

Message Too Old, No Replies

Disable cookie by using .htaccess ?

         

youyou

11:13 am on Nov 24, 2008 (gmt 0)

10+ Year Member



hello guys how are you all?

i'm new here sorry if i post in the wrong bored

i have question how can i disable (mp3 format file) going to cookie by useing .htaccess

what i'm trying to say i have songs in my website & everytime ppl playing it is going to there cookie folder how can i disable it?

any help plezzz

tedster

7:20 pm on Nov 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello youyou, and welcome to the forums.

Are you saying that the mp3 file gets saved in the browser's cookie folder when people play it? Or that it causes a cookie to be saved?

tangor

12:03 am on Nov 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Biggest problem is it is going to their browser cache!

youyou

2:46 am on Nov 25, 2008 (gmt 0)

10+ Year Member



hello tedster yes this what i maen mp3 file gets saved in the browser's cookie folder when people play it

so how do i Disable it?

bill

8:31 am on Nov 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Does this happen with all browsers or just certain ones, like IE, Firefox, Opera, Safari, Chrome, etc.?

phranque

9:20 am on Nov 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



how are you serving the mp3 content?
my first guess would be that you have an improperly constructed HTTP Response such that the mp3 file is contained in the cookie data.
however cookies are typically limited to 4KB which would be a small mp3 file.
my second guess is that there is a bug in the player that is cacheing the mp3 file in the cookie folder.
i don't know of any way you could specify where a file goes from the server.

Receptional Andy

9:23 am on Nov 25, 2008 (gmt 0)



Welcome to WebmasterWorld, youyou :)

I may be wrong, but I think you probably mean the browser cache folder as opposed to the cookie folder.

It isn't easy to prevent caching of files like this, since in order to play, it must be downloaded to a user's computer. However, you could try to use additional techniques like audio streaming which will make it more difficult for users to obtain a copy of your mp3. E.g. load the mp3 via a flash/swf file or some similar mechanism and attempt to make it harder for users to retrieve it from their local cache that way - similar to myspace or youtube.

phranque

1:39 pm on Nov 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



in general you can suggest user agent behaviour with your response but you cannot force such behaviour.
you can make it difficult just not impossible.
this is necessarily so for usability and accessibility reasons.

youyou

2:45 pm on Nov 26, 2008 (gmt 0)

10+ Year Member



will i'm useing flash mp3 player so when the song is playing is saveing in the Temporary Internet Files this what i maen come on guys i really neeed this i wish i can post the website & show you what i maen but i cant as Terms of Service Of this website i cant :(

if i cant Disable cookie by using .htaccess what about any other way ?

tedster

7:43 pm on Nov 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you could disable all local storage of the file, then the user could not play it at all.

Receptional Andy

8:08 pm on Nov 26, 2008 (gmt 0)



youyou, do you see the same behaviour if you watch (for instance) a youtube video or listen to audio on myspace? If not, then it is your flash player that is not working as you desire.

youyou

4:24 am on Nov 27, 2008 (gmt 0)

10+ Year Member



Receptional Andy no is not the same.
i gus i give up i been looking for this over 1 year any way thank you guys for trying to help me.

thank you again all

bill

5:35 am on Nov 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Then as Receptional Andy said, "it is your flash player that is not working as you desire."