gc works fine now,
How to extract some value from $session['Mysession']['data']
like User.username ?
I would like to find all logged users (by username). () without stuff
like:
$a = preg_split( "/(\w+)\|/", $row['data'], -1,
PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE );
Is there another way?
On Apr 7, 1:55 pm, "jyrgen" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---