php - Session handling with Recess! -
i using recess framework application & troubled session handling. need store values in session.. able create session , session id. navigate page, not able retrieve them !! how people manage sessions? php session handling simple , straight forward.. not able right!
in home controller have:
/* !route get, / */ function index() { . . session_start(); $_session['val'] = 'somevalue'; . . }
my view displays form , when user submits, need access session val well.. try value as:
/* !route get, /check */ function check() { if(isset($_session['val'])){ . . . } }
but unfortunately, don't enter if block .. not able see mistake tried displaying session using session_id() , blank value in check() method.
i noticed that, time create new session, session_id same!! in php? far read, should different!
after many trails , discussion other community members @ recess framework's forum, here how got working:
i put session_start() in recess-conf.php , seems work fine now!
Comments
Post a Comment