I have read that a method to share the session is exactly using memcache like session_handler. And I have to share Cake session with other web application.
On 7 Ott, 16:44, jperras <joel.per...@gmail.com> wrote: > Memcache being used as a cache configuration and Sessions have pretty > much nothing in common, unless you've set your session save handler > (in app/core.php) to be cache-based, which is usually not a good idea > unless you know what you're doing. > > -j. In app/core.php I have set the session handler like php and in php.ini I have set session_handler like memcache and in this situation I get all problems that I have described. Marco > > On Oct 6, 5:19 pm, "marco.rizze...@gmail.com" > > <marco.rizze...@gmail.com> wrote: > > Hi > > I have installed memcache on my system. > > I have setted CakePHP to use memcache. > > I have setted the Configure::write('Security.level', 'medium'); > > All seems to work but sometimes I lost the session. In particular I > > note this when I do a sequence of ajax call. > > A simple example to show this error is: > > > /*My Controller*/ > > > ...... > > function test($show=0){ > > if ($show==1){ > > $this->layout='ajax'; > > echo "<pre>"; > > > > print_r($this->Session->read($this->Auth->sessionKey)); > > echo "</pre>"; > > die(); > > } > > } > > ....... > > > /*My Test View*/ > > <? > > echo $ajax->link( > > 'test', > > array( 'controller' => 'my_controller', 'action' => 'test','1'), > > array( > > 'update' => 'test_1', > > 'after' => $ajax->remoteFunction( > > array( > > 'url' => array( > > 'controller' => 'my_controller', 'action' => > > 'test','1'), > > 'update' => 'test_2', > > ) > > ), > > ), > > null,false > > ); > > ?> > > <div id="test_1" ></div> > > <div id="test_2" ></div> > > > I hope someone can help me about this. > > Many Thanks > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---