m7dmh
(M7d Mh)
1
Hi,
- I already finished my member area, but session timeout will not work.
then i added this code in config/main.php
'session' => array(
'class' => 'CDbHttpSession',
'timeout' => 1440,
'cookieParams' => array(
//'path' => '/',
//'domain' => '.mydomain.com',
'httpOnly' => true,
'secure' => false,
),
),
now my session problem is ok, but it should be add in main?? without that, session expire will not work?
- second question is that, when i change :
'secure' => true,
then my login will not work !!!
alirz23
(Ali Raza)
2
maziar you can pass the duration to your Yii::app()->user->login() method
m7dmh
(M7d Mh)
3
thank you , i know that, but i am asking , by default in Yii there is no automatic session expire?
m7dmh
(M7d Mh)
4
alirz , why in cookieParams when i change it to
'secure' => true,
my cookie will not work?
alirz23
(Ali Raza)
5
I think you need to read this it says if secure is enabled it send cookie over https
http://us2.php.net/manual/en/function.session-get-cookie-params.php
and you are using database session store