Yii Framework Forum: Memcached Session Handler - Yii Framework Forum

Jump to content

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

Memcached Session Handler How to set up a memcached session handler Rate Topic: -----

#1 User is offline   Patrick H 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 25-December 12

Posted 25 December 2012 - 07:10 PM

Hello guys,
I want to change the session handler to memcached. Memcached is set up as system cache (works fine).
Now is the question for me how to change session handler?

in /protected/config/main.php I tried the following
'session' => array (
    'sessionName' => 'app_name',	 
    'class'=> 'CCacheHttpSession',
    'autoStart' => 'false',	 
    'cookieMode' => 'only',
    'savePath' => '/tmp/session',
    'timeout' => 300
),


I'm new to yiiframework and google and board search couldn't help me.
0

#2 User is offline   jwlee 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 19-August 09

Posted 13 February 2013 - 04:50 AM

View PostPatrick H, on 25 December 2012 - 07:10 PM, said:

Hello guys,
I want to change the session handler to memcached. Memcached is set up as system cache (works fine).
Now is the question for me how to change session handler?

in /protected/config/main.php I tried the following
'session' => array (
    'sessionName' => 'app_name',	 
    'class'=> 'CCacheHttpSession',
    'autoStart' => 'false',	 
    'cookieMode' => 'only',
    'savePath' => '/tmp/session',
    'timeout' => 300
),


I'm new to yiiframework and google and board search couldn't help me.



change it in php.ini

session.save_handler= memcache (or memcached)
session.save_path="tcp://localhost:11211"
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