Wednesday, December 1, 2010

Re: How to manipulate cakephp's sessions table with sql

Have you had any luck? I'm trying to do the same, and I'n not able to
delete row even with $this->Online->query()...

On Nov 25, 3:08 pm, Ish <ish1...@gmail.com> wrote:
> Hi Folks,
>
> I am using storing user sessions in database table sessions , and
> trying to manipulate (edit or delete) the sessions table from admin
> panel controls.
>
> // controllers/OnlinesController.php
> // e.g. $id = 'bk86c9argtdlqv7t12g8a0ugf6'
> $this->Online->delete($id); // doesn't work
> //
> // $this->Online->find('all'); // read operations work fine
>
> It's not letting me do that, anybody know's why ?
>
> In my core.php configurations, I have
>
> // config/core.php
> Configure::write('Session.save', 'database');
> Configure::write('Session.model', 'Session');
> Configure::write('Session.table', 'sessions');
> Configure::write('Session.database', 'default');
> Configure::write('Session.cookie', 'CAKEPHP');
> Configure::write('Session.timeout', '144');
> Configure::write('Session.start', true);
> Configure::write('Session.checkAgent', true);
> Configure::write('Security.level', 'medium');
>
> I have separate model Online to handle operations to sessions table.
>
> // models/online.php
> var $useTable = 'sessions';
>
> Any help is greatly appreciated
> - Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: