Discuss Scratch
- Discussion Forums
- » Suggestions
- » Cookie Variables!
- hppavilion
-
100+ posts
Cookie Variables!
This may look weird to you if you aren't familiar with cookies. So I'll explain.
Cookies are tiny files stored on your computer in your browser that a website can read and write to. They are deleted after a period of time by your computer, but they can last for years.
They are what is working whenever you click “Remember me” or anything so that you can really do that makes the server remember data. Funnily, this includes saves in Cookie Clicker.
What I am suggesting is an EXTREMELY useful alternative to Cloud Data. It would need no server space or anything. When the project is started by a user, a cookie is created on their server for every cookie variable there is in the project. Said cookie will constantly record the variable, so if you want to create a savable project where you can come back later, you can.
Cookies are tiny files stored on your computer in your browser that a website can read and write to. They are deleted after a period of time by your computer, but they can last for years.
They are what is working whenever you click “Remember me” or anything so that you can really do that makes the server remember data. Funnily, this includes saves in Cookie Clicker.
What I am suggesting is an EXTREMELY useful alternative to Cloud Data. It would need no server space or anything. When the project is started by a user, a cookie is created on their server for every cookie variable there is in the project. Said cookie will constantly record the variable, so if you want to create a savable project where you can come back later, you can.
- Sonickyle
-
1000+ posts
Cookie Variables!
Part support.
The only problem I see with this is that a project could have loads of cookie varibles, which could take up space quickly on a computer with little storage space.
I think that the icon could be this: ᨟
The only problem I see with this is that a project could have loads of cookie varibles, which could take up space quickly on a computer with little storage space.
I think that the icon could be this: ᨟
set [᨟ cookie v] to []
- astro-mechanic
-
500+ posts
Cookie Variables!
It switched to localstorage a while ago, sadly. Funnily, this includes saves in Cookie Clicker.

Part support.
The only problem I see with this is that a project could have loads of cookie varibles, which could take up space quickly on a computer with little storage space.
I think that the icon could be this: ᨟set [᨟ cookie v] to []
+1
- hppavilion
-
100+ posts
Cookie Variables!
First of all, I don't know what that is (I presume it is local storage, though.) Why not LSO's?
But why not cookies? They're more common (we're mostly going to be storing small variables. No need for local storage), they're enabled by default (you don't need to click “OK” to cookies usually. A lot of people are going to say “No” to local storage then me angry when the project isn't working as advertised), and you get to use the word cookie more.
- TheHockeyist
-
1000+ posts
Cookie Variables!
No support. There are some people against the idea of storing cookies. Also, as per Sonickyle, there are computers with limited storage space.
- Blueinkproductions
-
1000+ posts
Cookie Variables!
LSO's are Flash cookies and stand for L(ocal) S(hared) O(bject). Flash uses them in the same way that HTML has cookies: to remember data. I believe that cookies are local storage as well, except that if a site is trying to store lots of info on a computer, the Flash Player will bring up an alert that says: <website> wants to store more data on your computer.First of all, I don't know what that is (I presume it is local storage, though.) Why not LSO's?
But why not cookies? They're more common (we're mostly going to be storing small variables. No need for local storage), they're enabled by default (you don't need to click “OK” to cookies usually. A lot of people are going to say “No” to local storage then me angry when the project isn't working as advertised), and you get to use the word cookie more.
- hppavilion
-
100+ posts
Cookie Variables!
There would be a “This project uses cookies” alert on the project (Sort of like the “Username” block having an alert.) Anyways, if you're against using cookies just don't enable them on your browser. It won't kill anyone. And cookies are tiny files left by EVERY website. A few more from scratch aren't going to exhaust your computer space unless you have only a kilobyte left. No support. There are some people against the idea of storing cookies. Also, as per Sonickyle, there are computers with limited storage space.
- TheHockeyist
-
1000+ posts
Cookie Variables!
There would be a “This project uses cookies” alert on the project (Sort of like the “Username” block having an alert.) Anyways, if you're against using cookies just don't enable them on your browser. It won't kill anyone. And cookies are tiny files left by EVERY website. A few more from scratch aren't going to exhaust your computer space unless you have only a kilobyte left. No support. There are some people against the idea of storing cookies. Also, as per Sonickyle, there are computers with limited storage space.
Mmm… I have reasons to not support and to support as per you, so I'll have to be indifferent on this one now.
- hppavilion
-
100+ posts
Cookie Variables!
But what about if/when they finally get the HTML5 Player out?LSO's are Flash cookies and stand for L(ocal) S(hared) O(bject). Flash uses them in the same way that HTML has cookies: to remember data. I believe that cookies are local storage as well, except that if a site is trying to store lots of info on a computer, the Flash Player will bring up an alert that says: <website> wants to store more data on your computer.First of all, I don't know what that is (I presume it is local storage, though.) Why not LSO's?
But why not cookies? They're more common (we're mostly going to be storing small variables. No need for local storage), they're enabled by default (you don't need to click “OK” to cookies usually. A lot of people are going to say “No” to local storage then me angry when the project isn't working as advertised), and you get to use the word cookie more.
- Blueinkproductions
-
1000+ posts
Cookie Variables!
AFAIK HTML5 uses yet another type of storage.But what about if/when they finally get the HTML5 Player out?LSO's are Flash cookies and stand for L(ocal) S(hared) O(bject). Flash uses them in the same way that HTML has cookies: to remember data. I believe that cookies are local storage as well, except that if a site is trying to store lots of info on a computer, the Flash Player will bring up an alert that says: <website> wants to store more data on your computer.First of all, I don't know what that is (I presume it is local storage, though.) Why not LSO's?
But why not cookies? They're more common (we're mostly going to be storing small variables. No need for local storage), they're enabled by default (you don't need to click “OK” to cookies usually. A lot of people are going to say “No” to local storage then me angry when the project isn't working as advertised), and you get to use the word cookie more.
- PH-zero
-
100+ posts
Cookie Variables!
Just let them have a limit. Like cloud vars. Part support.
The only problem I see with this is that a project could have loads of cookie varibles, which could take up space quickly on a computer with little storage space.
I think that the icon could be this: ᨟set [᨟ cookie v] to []
I fully support this!
- RPFluffy
-
1000+ posts
Cookie Variables!
Part support.
The only problem I see with this is that a project could have loads of cookie varibles, which could take up space quickly on a computer with little storage space.
I think that the icon could be this: ᨟set [᨟ cookie v] to []
Agreed, I mean you could have a limited number per user like 25-50 per project and then you'd have to request more from the scratch team?
- djdolphin
-
1000+ posts
Cookie Variables!
LSOs are stored separately. I delete my browsing history and cookies often…
- lalala3
-
100+ posts
Cookie Variables!
I don't think storage space would be a problem. Cookies tend to be really small, generally not more than a few KB. Each domain (essentially website) has a maximum of 20 cookies and 4KB total between them. That's really small, even for computers so old that they by all rights should have stopped working by now.
- OmnipotentPotato
-
1000+ posts
Cookie Variables!
IT'S SO BEAUTIFUL!!!!!
Support. This seems like one of those ideas that will never get accepted though because it's too awesome.
- Discussion Forums
- » Suggestions
-
» Cookie Variables!