I’ve got db sessions running on my site, however there’s something weird going on with the expriy/timeout.
My components session array is:
'session' => array ( 'class' => 'CDbHttpSession', 'connectionID' => 'db', 'sessionTableName' => 'test_session', 'sessionName' => 'mpp_sess', 'timeout' => (86400 * 60) // 60 days ),
However, the expiry field is being set as a string rather than a date, meaning the session is always invalid (well, after I close the browser window):
(tested this on both Chrome and Safari).
Also a side question, but not as important as my main question: how can I mark the session cookie for ‘httpOnly’?
Edit: I’m trying to post an image of my cooke (and it’s expiry value), but as it’s my first post I can’t. The value for ‘expiry’ is ‘Session’