Yii Framework Forum: CDBHttpSession locking - Yii Framework Forum

Jump to content

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

CDBHttpSession locking Rate Topic: -----

#1 User is offline   tko 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 04-August 09

Posted 24 July 2012 - 02:13 AM

Hi,

is there any possiblility to add locking to CDBHttpSession?

My app has several sync ajax requests that need to reed and write to the session. The main issue is - I think - the lack of locking. If I use simple CHttpSession everything is fine, but now I need a central session storage (load balanced setup).

I also tried memcached or redis to store the session data, but they seem also to lack locking.

Any ideas?

Greetings from Hamburg
Thorsten
0

#2 User is offline   Y!! 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 978
  • Joined: 18-June 09

Posted 24 July 2012 - 02:31 PM

You will have to extend CDbHttpSession either for transaction based or file based locking. Should be easy to implement.

For now there is no lock mechanism/component in Yii core which could be plugged in there. Also I didn't noticed a relevant amount of people complaining about the non-locking behavior. So as far as I know, for now there are no plans to implement such a mechanism.
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