How To : Using Cookies

Page Status: Beta

Back to Concepts and HOW TOs

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:

  1. Add a function to your application
  2. Open the function in the Design Editor.
  3. From the Toolbox, drag call function into your function.
  4. In the Property Editor, select AppGlobal in the dropdown box next to Function Path.
  5. Click the ellipsis button (...) next to AppGlobal.
  6. In the dialog box that's displayed, select the appropriate function.
  7. Click OK.

[edit] Error Handling

 

[edit] Examples

 

[edit] Next Steps

Simulating or Testing Your Project or Application
Posting Your Application

[edit] Tags

 

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.