API > eden > session.php
View Source

class Eden_Session

General available methods for common server session procedures.

  • Extends: Eden_Class
  • Implements: ArrayAccess, Iterator

Public Methods

public function clear()

Removes all session data

Returns bool

public function current()

Returns the current item For Iterator interface

Returns void

public function get($key = NULL)

Returns data

Arguments

  1. string|null

Returns mixed

public function getId()

Returns session id

Returns int

public function key()

Returns th current position For Iterator interface

Returns void

public function next()

Increases the position For Iterator interface

Returns void

public function offsetExists($offset)

isset using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function offsetGet($offset)

returns data using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function offsetSet($offset, $value)

Sets data using the ArrayAccess interface

Arguments

  1. number
  2. mixed

Returns void

public function offsetUnset($offset)

unsets using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function remove($name)

Removes a session.

Arguments

  1. *string session name

Returns this

public function rewind()

Rewinds the position For Iterator interface

Returns void

public function set($data, $value = NULL)

Sets data

Arguments

  1. array|string
  2. mixed

Returns this

public function setId($sid)

Sets the session ID

Arguments

  1. *int

Returns int

public function start()

Starts a session

Returns bool

public function stop()

Starts a session

Returns Eden_SessionServer

public function valid()

Validates whether if the index is set For Iterator interface

Returns void

class Eden_Session_Error

Session Errors

Constants

  • ERROR_NOT_STARTED: Session is not started. Try using Eden_Session->start() first.

© 2012 Openovate Labs. All rights reserved.