hs-php-session-0.0.8.8: PHP session serialization

Portabilityportable
Stabilityexperimental
MaintainerEdward L. Blake <edwardlblake@gmail.com>
Safe HaskellSafe-Inferred

Data.PHPSession

Contents

Description

Encodes and decodes serialized PHP sessions in the format used by the "php" setting for session.serialize_handler.

Synopsis

Decode from ByteString

decodePHPSession :: ByteString -> Maybe PHPSessionVariableListSource

Decodes a ByteString representing a PHP session into a PHPSessionVariableList

Encode to ByteString

Decode only part of a ByteString

decodePartialPHPSession :: ByteString -> (Maybe PHPSessionVariableList, ByteString)Source

Decodes as much as needed of a ByteString representing a PHP session into a PHPSessionVariableList

decodePartialPHPSessionValue :: ByteString -> (Maybe PHPSessionValue, ByteString)Source

Decodes as much of a ByteString as needed into a PHPSessionValue

PHP session types

type PHPSessionVariableList = [(ByteString, PHPSessionValue)]Source

Holds the top-level session variables and their value contents.