Yii Framework Forum: Working With Sessions - Yii Framework Forum

Jump to content

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

Working With Sessions Rate Topic: -----

#1 User is offline   developer! 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 110
  • Joined: 28-November 12

Posted 04 January 2013 - 11:15 AM

Hi All,


How to work with sessions in YII. I'm quite confused where to start for this sessions on yii. can any one pls guide me or give me some useful source


Thanks alot
0

#2 User is offline   LastDay 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 06-March 11
  • Location:Russia

Posted 04 January 2013 - 12:02 PM

http://www.larryullm...-yii-framework/
0

#3 User is offline   Aneesh Asokan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 223
  • Joined: 26-September 12

Posted 05 January 2013 - 01:13 PM

View Postdeveloper!, on 04 January 2013 - 11:15 AM, said:

Hi All,


How to work with sessions in YII. I'm quite confused where to start for this sessions on yii. can any one pls guide me or give me some useful source


Thanks alot


You can use the sessions like this
for store a value to sessions:
                       $session=new CHttpSession;
                       $session->open();
                       $session['key']='value';

for retrieve the session data:
            $session=new CHttpSession;
            $session->open();
            $value=$session['key'];
            echo $value;


The link very helpful: http://www.larryullm...-yii-framework/

Thanks
Thanks
Aneesh.
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