[Suggestion] Client-side persistent variables

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

[Suggestion] Client-side persistent variables

Post 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.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
TomRiddle
Posts: 250
Joined: 14 Jul 2011, 16:16

Re: [Suggestion] Client-side persistent variables

Post by TomRiddle »

nice idea, i thought about that already but then i sloved it with php sessions ans ChangeInageUrl ;D
konte
Posts: 236
Joined: 15 Jun 2010, 12:36
Location: Germany

Re: [Suggestion] Client-side persistent variables

Post by konte »

I think a solid cookie handling would be better :)
TomRiddle
Posts: 250
Joined: 14 Jul 2011, 16:16

Re: [Suggestion] Client-side persistent variables

Post by TomRiddle »

jupp i checked out the html5 things.
it would be better ^^
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest