Page 1 of 1

[Suggestion] Client-side persistent variables

Posted: 04 Jan 2012, 18:38
by gouxim
Happy new year!

It would be very useful to be able to declare client-side persistent variables in Manialink pages. Something like Web storage in HTML5 if you will.

Here's my two cents:
  • A Manialink page can declare a persistent variable
  • All the variables declared are only accessible within the same domain
  • You can either declare it for the current session only, or for all time
A possible syntax could be the following

Code: Select all

declare Text foo for Storage;
declare Text bar for SessionStorage;

foo = "hello"; // Persistent forever
bar = "hi"; // Persistent for the session only
Another solution could be to give an API to interact with cookies.

Re: [Suggestion] Client-side persistent variables

Posted: 05 Jan 2012, 19:03
by TomRiddle
nice idea, i thought about that already but then i sloved it with php sessions ans ChangeInageUrl ;D

Re: [Suggestion] Client-side persistent variables

Posted: 06 Jan 2012, 14:25
by konte
I think a solid cookie handling would be better :)

Re: [Suggestion] Client-side persistent variables

Posted: 20 Jan 2012, 15:43
by TomRiddle
jupp i checked out the html5 things.
it would be better ^^