Skip to content

Instantly share code, notes, and snippets.

@romainneutron
Created December 3, 2012 23:50
Show Gist options
  • Save romainneutron/4199160 to your computer and use it in GitHub Desktop.
Save romainneutron/4199160 to your computer and use it in GitHub Desktop.
In Silex :
object(Symfony\Component\HttpFoundation\Session\Session)[128]
protected 'storage' =>
object(Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage)[40]
protected 'bags' =>
array (size=2)
'attributes' =>
object(Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag)[129]
private 'name' => string 'attributes' (length=10)
private 'storageKey' => string '_sf2_attributes' (length=15)
protected 'attributes' => &
array (size=1)
'plop' => string 'pipi1342093247' (length=14)
'flashes' =>
object(Symfony\Component\HttpFoundation\Session\Flash\FlashBag)[130]
private 'name' => string 'flashes' (length=7)
private 'flashes' => &
array (size=0)
empty
private 'storageKey' => string '_sf2_flashes' (length=12)
protected 'started' => boolean true
protected 'closed' => boolean false
protected 'saveHandler' =>
object(Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy)[43]
protected 'handler' =>
object(Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler)[41]
private 'memcache' =>
object(Memcache)[37]
public 'connection' => resource(17, memcache connection)
private 'ttl' => int 86400
private 'prefix' => string 'sf2s' (length=4)
protected 'wrapper' => boolean false
protected 'active' => boolean true
protected 'saveHandlerName' => string 'user' (length=4)
protected 'metadataBag' =>
object(Symfony\Component\HttpFoundation\Session\Storage\MetadataBag)[42]
private 'name' => string '__metadata' (length=10)
private 'storageKey' => string '_sf2_meta' (length=9)
protected 'meta' => &
array (size=3)
'u' => int 1354578586
'c' => int 1354578208
'l' => string '0' (length=1)
private 'lastUsed' => int 1354578556
private 'flashName' => string 'flashes' (length=7)
private 'attributeName' => string 'attributes' (length=10)
In Ratchet :
class Symfony\Component\HttpFoundation\Session\Session#63 (3) {
protected $storage =>
class Ratchet\Session\Storage\VirtualSessionStorage#65 (6) {
protected $_serializer =>
class Ratchet\Session\Serialize\PhpHandler#12 (0) {
}
protected $bags =>
array(2) {
'attributes' =>
class Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag#68 (3) {
private $name =>
string(10) "attributes"
private $storageKey =>
string(15) "_sf2_attributes"
protected $attributes =>
array(0) {
}
}
'flashes' =>
class Symfony\Component\HttpFoundation\Session\Flash\FlashBag#69 (3) {
private $name =>
string(7) "flashes"
private $flashes =>
array(0) {
}
private $storageKey =>
string(12) "_sf2_flashes"
}
}
protected $started =>
bool(false)
protected $closed =>
bool(false)
protected $saveHandler =>
class Ratchet\Session\Storage\Proxy\VirtualProxy#66 (6) {
protected $_sessionId =>
string(0) ""
protected $_sessionName =>
string(9) "PHPSESSID"
protected $handler =>
class Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler#11 (0) {
}
protected $wrapper =>
bool(false)
protected $active =>
bool(false)
protected $saveHandlerName =>
string(4) "user"
}
protected $metadataBag =>
class Symfony\Component\HttpFoundation\Session\Storage\MetadataBag#67 (4) {
private $name =>
string(10) "__metadata"
private $storageKey =>
string(9) "_sf2_meta"
protected $meta =>
array(3) {
'c' =>
int(0)
'u' =>
int(0)
'l' =>
int(0)
}
private $lastUsed =>
NULL
}
}
private $flashName =>
string(7) "flashes"
private $attributeName =>
string(10) "attributes"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment