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.

On Oct 6, 5:19 pm, "[email protected]"
<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to