Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Storage Mechanisms

BenTheDesigner edited this page Jan 12, 2013 · 4 revisions

@todo Write introduction

Session Storage

The session storage handler uses PHP sessions to provide transient storage for access tokens. Whilst this is not suitable for applications that require permanent storage it is used internally by the mechanisms that do provide permanent storage to reduce overheads on subsequent calls (e.g. database queries).

@todo Provide example

PDO Storage Handler

The PDO handler uses a MySQL database to provide persistent storage for access tokens. It allows the library to be used in an application where a user system already exists, without the need to modify it in any way. Once a token is retrieved from the database it is stored in the user's session to prevent any unnecessary database overhead.

@todo Provide example

Filesystem Handler (Thanks to @jschmid for this contribution)

The Filesystem handler stores access tokens on disk. A popular example of where this mechanism is used is to provide access to a specific Dropbox where no user system is currently present or required (e.g. upload files directly to Dropbox from a web form).

@todo Provide example

Clone this wiki locally