finally i found a way to implement a custom
session garbage collection. luckily there
is the "expires" field which can be evaluated
instead of the serialized value in the data array:

// custom session garbage collection

$sessions = $this->Mysession->findAll();
foreach($sessions as $session){
        if($session['Mysession']['expires']<time()){
        $this->Mysession->del($session['Mysession']['id']);
        }
  }

use the mysession model i posted above.

majna, wasn't it this what you have been looking for ?

cheers, jyrgen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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