Possible Duplicate:
How to use Zend\Session in zf2?
I begin with ZF2
but I can't continue because I don't understand the official ZF2
documentation.
I run version 2.0.4.
How can I simply translate this PHP code into ZF2?:
include.php
session_start();
index.php
$_SESSION['login'] = 'toto';
otherpage.php
if ( isset($_SESSION['login']) ) echo $_SESSION['login'];//view toto
I tried with Zend\Authentification\Storage\Session
and Zend\Session
but nothing worked.