Yii Framework Forum: Setstate - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setstate Rate Topic: -----

#1 User is offline   helju 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 23-May 13

Posted 19 June 2013 - 02:00 PM

I have used setState (below) to store data in session. Is it always unsafe way to save information? Can it be made safe?

Yii::app()->user->setState('sum', $this->sum);

0

#2 User is offline   helju 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 23-May 13

Posted 19 June 2013 - 02:26 PM

Is it safe way to use setState by configuring in main.php like below?

'components' => array(
        'session'=>array(

                        'class'=>'CDbHttpSession',

                ),



I found this from here: http://www.yiiframew...fe-is-setstate/

I also turned allowAutoLogin false.

Is the information still as plain text in cookies?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users