[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
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Fri May 04, 2012 9:58 pm

cool...very nice job
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

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
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

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
42
S
9
G
6
Posts: 437
Reputation: 5,626

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
42
S
9
G
6
Posts: 437
Reputation: 5,626

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
11
S
3
Posts: 278
Reputation: 2,068

Post » Thu May 28, 2015 12:52 pm

@Ribis

You can edit the runtime.js line 99 to:

acts.SetCookie(name,"",-1);
B
23
S
6
Posts: 20
Reputation: 1,311

Post » Thu Oct 29, 2015 2:17 am

Also, thanks tmntppn, that worked for me.
Eat ALL THE BACON!
B
39
S
14
G
3
Posts: 279
Reputation: 4,344

Next

Return to Completed Addons

Who is online

Users browsing this forum: Psychokiller1888 and 1 guest