문제

Is it possible to share cakephp session between cake applications of different version.I have two applications having cake1.3 and cake2.3 respectively.Kindly answer.

도움이 되었습니까?

해결책

Yes, that's possible using database sessions. You need to create a database table:

CREATE TABLE cake_sessions (
  id varchar(255) NOT NULL default '',
  data text,
  expires int(11) default NULL,
  PRIMARY KEY  (id)
);

And in core.php (CakePHP 2.x) set:

// Location /app/Config/core.php
Configure::write('Session', array(
    'defaults' => 'database'
));

On CakePHP 1.3, set:

// Location /app/config/core.php
Configure::write('Session.save', 'database');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top