How To : Using Cookies
Page Status: Beta
Contents |
[edit] Description
This document describes how to implement cookies in a Bungee-powered application.
A cookie is arbitrary data that can be stored by an application. A cookie consists of a name, an arbitrary value, and an expiration date. If the expiration date is set to a date/time in the future, then the cookie is “persistent” and can be retrieved until it expires. If the expiration date occurs in the past, then the cookie is a “session” cookie and does not persist beyond the current session.
[edit] Prerequisites
Creating a Solution
Adding a Function to a Class
[edit] Procedure
Manage cookies with the following three functions:
To add these functions to your application:
- Add a function to your application
- Open the function in the Design Editor.
- From the Toolbox, drag call function into your function.
- In the Property Editor, select AppGlobal in the dropdown box next to Function Path.
- Click the ellipsis button (...) next to AppGlobal.
- In the dialog box that's displayed, select the appropriate function.
- Click OK.
[edit] Error Handling
[edit] Examples
[edit] Next Steps
Simulating or Testing Your Project or Application
Posting Your Application
[edit] Tags