CSRF
  • Namespace
  • Class
  • Tree

Namespaces

  • PHP
  • Riimu
    • Kit
      • CSRF
        • Source
        • Storage

Classes

  • CookieStorage
  • SessionStorage

Interfaces

  • TokenStorage

Exceptions

  • TokenStorageException

Interface TokenStorage

Interface for a persistent token storage.

Direct known implementers

Riimu\Kit\CSRF\Storage\CookieStorage, Riimu\Kit\CSRF\Storage\SessionStorage

Namespace: Riimu\Kit\CSRF\Storage
Copyright: Copyright (c) 2014, Riikka Kalliomäki
License: MIT License
Author: Riikka Kalliomäki riikka.kalliomaki@gmail.com
Located at Storage/TokenStorage.php

Methods summary

public
# storeToken( string $token )

Stores the CSRF token in the persistent storage.

Stores the CSRF token in the persistent storage.

Parameters

$token
The CSRF token to store

Throws

Riimu\Kit\CSRF\Storage\TokenStorageException
If the token cannot be successfully stored
public string|false
# getStoredToken( )

Loads the CSRF token from the persistent storage.

Loads the CSRF token from the persistent storage.

Returns

string|false
The stored token or false if none is stored

Throws

Riimu\Kit\CSRF\Storage\TokenStorageException
If the token cannot be successfully loaded
CSRF API documentation generated by ApiGen