Yii Framework Forum: How To Set Session File Name ? - Yii Framework Forum

Jump to content

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

How To Set Session File Name ? Rate Topic: -----

#1 User is offline   manhooei 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 13-September 11

Posted 29 January 2013 - 10:32 AM

How can I create session files with a specific name ? For example :

my user id : 154423
I want my session file name be : 154423

Any suggestion ? Also is there a way to read the timestamp on a session
file using Yii libraries ?
0

#2 User is offline   kokomo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 289
  • Joined: 23-July 10

Posted 29 January 2013 - 10:50 AM

You have to set useCustomStorage property of CHttpSession to true and implement openSession, writeSession, closeSession, etc. in your own Session class which should extend from CHttpSession.
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