CDbHttpSession timeout/expiry

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’

Ok here’s a picture of my cookie, notice the expires value is not a date :frowning:

img715.imageshack.us/img715/3644/screenshot20120906at120.png

I ended up figuring out the issue, in addition to the timeout parameter (which I think is only for the database) I also needed to specify the lifetime in cookieParams:


'session' => array

(

	'class' => 'CDbHttpSession',

	'connectionID' => 'db',

	'sessionTableName' => 'test_session',

	'sessionName' => 'mpp_sess',

	'cookieParams' => array

	(

		'lifetime' => (86400 * 60),

	),

	'timeout' => (86400 * 60)		//	60 days

),



Now does anybody know how to make it httpOnly? I have tried specifying [font=“Courier New”]‘httpOnly’ => true[/font] inside cookieParams however nothing changes.