It is currently Thu Apr 18, 2024 8:51 pm

All times are UTC - 5 hours



Forum rules


Please read the stickied topic marked "Please read before posting"~

Please only post here if you need technical help with BattleDawn, or if you have information that can help someone.

Please stay on topic.

No spam.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: WHY NOT TO CLEAR YOUR COOKIES
PostPosted: Fri Jul 10, 2009 5:59 pm 
Private 1st class
Private 1st class
 Profile

Joined: Sat Jun 13, 2009 5:17 am
Posts: 14
Gender: male
Ok this may look like spam at first, but please listen. Nobody has spoken up on this yet, but something really must be said on this issue.

After every update the BD staff has been advising players to clear both their cookies and they're cache. With all honesty, any company who suggests that you clear your cookies should immediately fire their programmers. This may sound harsh, but I will endevour to elaborate shortly. Suffice to say that, if the programmer knows what a cookie is, then they also know how to clear it from within the program itself. The cache on the other hand is more complex and in some cases this is necessary. I will discuss this briefly, but I'm unaware of any potential fixxes for this issue.

Alright so what is a cookie? Well in essence a cookie is a small text file that your browser saves on your computer, at the request of a website. This text file is sent to the server every time visit a page on their website. The website may also change the contents of this text file every time you visit one of their pages. Now believe it or not, the web would not exist in its current state if it weren't for cookies. A very common use of cookies is when users login to a website. Cookies are also often used to save a user's preferences.

Do any of you play flash games other than BattleDawn? Well guess where your saved games and options are saved? In cookies! So remember that game you've been playing all week trying to unlock everything? Well guess what just happened when you cleared your cookies? YOUR SAVE GAME GOT ERASED, AND NOW YOU HAVE TO START OVER FROM THE FIRST LEVEL. I'm kidding on this. Sometimes games save their information in a database (like BattleDawn does), and thus they are not effected by this. But unless its some sort of multiplayer game this is rare. Most singleplayer games use cookies.

Now why did I say earlier that "With all honesty, any company who suggests that you clear your cookies should immediately fire their programmers." ? Well its a little different depending on what language you are using, but basically setting a cookie is as simple as this in PHP (in most other languages too):

Code:
setcookie('test', 'test', 0);


Changing a cookie is done the same way. Deleting a cookie is done like this:

Code:
setcookie ('test', '', time() - 3600);


Now, while this can get more complex when they are attempting to roll out a new version of the client, as long as they keep track of what changed (which you should also fire your programmers if they don't keep track of this) it really isn't to hard to change. Basically the solution is to first check if the cookies make sense in the current version of the client and then to either try to repair them, or if they are complete nonsense to just ignore them and replace them with ones that do make sense.

Try these links for more information on cookies:
http://www.w3schools.com/JS/js_cookies.asp
http://us.php.net/manual/en/function.setcookie.php

Alright so what is the cache? Well every time you visit a website, your browser downloads the files that make up the website. To make pages load quicker, your browser only downloads files that it thinks have changed since it last downloads them. So the cache is used primarily for making websites faster. Now the problem here, is that sometimes your browser doesn't think the file it downloaded earlier is out of date, when in reality it is. This is pretty common problem with flash games (it happens with java games too sometimes). This is a more difficult problem to solve, but it would be nice if they would look for one.

Alright I hope you learned something here. And I hope you see why I say with all honesty that any company who asks you to clear your cookies just to use their website or play their games, should seriously consider firing their programmers. (cmon guys its not hard to make a web page that will clear just the cookies that your website set)

merlin4


Top
 

 Post subject: Re: WHY NOT TO CLEAR YOUR COOKIES
PostPosted: Fri Jul 10, 2009 6:01 pm 
Major
Major
User avatar
 WWW  Profile

Joined: Wed Jun 03, 2009 12:38 am
Posts: 4744
Location: In your closet , the netherlands
Gender: male
Who plays a flash game for weeks anyway?

And TL;DR , anyway , i don't mind , it doesn't have any negative effects.

_________________
ImageImage
best rank/Best rank of alliance which I led 1#
Most amount of crystals/relics held 355/3
Total amount of crystals/relics obtained 2500~/11


Top
 

 Post subject: Re: WHY NOT TO CLEAR YOUR COOKIES
PostPosted: Fri Jul 10, 2009 6:04 pm 
Second Lieutenant
Second Lieutenant
 Profile

Joined: Mon Jun 01, 2009 1:25 am
Posts: 231
Easiest way to solve the flash cacehing issue is to do
Code:
"src=flash.swf?rdm=" + math.random()


Or if you don't want it to bust cache every time, you can do:

Code:
"src=flash.swf?version=" + currentClientVersion


Top
 

 Post subject: Re: WHY NOT TO CLEAR YOUR COOKIES
PostPosted: Fri Jul 10, 2009 10:42 pm 
Private 1st class
Private 1st class
 Profile

Joined: Sat Jun 13, 2009 5:17 am
Posts: 14
Gender: male
Rederoin lots of ppl do. Try these:

http://www.kongregate.com/games/gameina ... -chapter-0
http://www.kongregate.com/games/CasualC ... top-td-pro
http://www.kongregate.com/games/ArmorGames/sonny-2
http://www.kongregate.com/games/ArmorGames/sonny

If you read it lol, you'd understand. It's only so long beacuse ppl are rather uniformed. Don't post a counter-argument if ya didn't read the argument.


Top
 

 Post subject: Re: WHY NOT TO CLEAR YOUR COOKIES
PostPosted: Fri Jul 10, 2009 10:48 pm 
First Lieutenant
First Lieutenant
 Profile

Joined: Sun May 31, 2009 9:04 pm
Posts: 565
Gender: male
I've cleared my cache and cookies plenty of times, yet never lost any game data, so yeah.....

Plus, Tactisoft isn't going to fire all of their programmers lol, considering Michael programs the game too......

_________________
Image

Image

I can't play for CRAP


Top
 

Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Copyright Tacticsoft Ltd. 2008   
Updated By phpBBservice.nl