[PLUGIN] Cookies

Post your completed addons to share with the community

Post » Fri May 04, 2012 8:57 pm

Cookie

As the WebStorage is not what I need for my Games I am planning to do, and I have not found an easy Cookie implementation, I created one myself :)

At the very moment, you can Set a cookie, read a specific cookie and delete a cookie on the current domain.

Usage:
1. Add the new "Cookie" Object.

Set a Cookie
2. Using "Action:SetCookie" to tell name and value the cookie should have, and how many days the cookie is valid

Get a Cookie
2. Using "Action:GetCookie" to say which cookie shall be read
3. get the requested value by accessing "cookie.value"

Delete a Cookie
2. Using "Action:DelCookie" to say which cookie should be removed

Example Capx

Update 11. September 2012: Added quickfix to "hopefully" solve the error message problem. (Big thanks to xelloskun who provided that fix)Ubivis2012-09-11 09:12:45
B
44
S
10
G
8
Posts: 437
Reputation: 6,473

Post » Fri May 04, 2012 9:58 pm

cool...very nice job
B
163
S
39
G
13
Posts: 234
Reputation: 18,312

Post » Thu May 31, 2012 8:24 am

very cool, thanks for your good work!
B
16
S
4
G
1
Posts: 18
Reputation: 2,568

Post » Mon Jul 23, 2012 9:45 pm

@Ubivis

Hello, there something isn't working, i tried to use your plugin and i got an error, there a pic:



I'm using r95
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Tue Jul 24, 2012 7:25 am

Thank you for pointing out. I will have a look into it, when I am back from Work :)
B
44
S
10
G
8
Posts: 437
Reputation: 6,473

Post » Tue Sep 11, 2012 8:11 am

if anyone is having trouble with this error, just edit line 120 of runtime.js to:

ret.set_string(this.value.toString());

this should fix it.

btw: great plugin! cheersxelloskun2012-09-11 08:11:46
B
4
Posts: 1
Reputation: 752

Post » Tue Sep 11, 2012 8:20 am

thanks @xelloskun, will update the download in a few minutes with your fix.

Had not the time to figure it out myself ;)
B
44
S
10
G
8
Posts: 437
Reputation: 6,473

Post » Sat Dec 13, 2014 2:19 pm

@Ubivis

Very good plugin, but when I try to delete the cookie, there is an error says:

Uncaught ReferenceError: creatoCookie is not defined http://localhost:5000/Cookie_plugin.js, line 99 (col3)
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Thu May 28, 2015 12:52 pm

@Ribis

You can edit the runtime.js line 99 to:

acts.SetCookie(name,"",-1);
B
33
S
10
G
2
Posts: 46
Reputation: 3,063

Post » Thu Oct 29, 2015 2:17 am

Also, thanks tmntppn, that worked for me.
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,070

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests