Hey, 

You should be able to change your session configuration slightly:

/// in: Config/core.php

Configure::write('Session.handler', array(
'model' => 'MySession'
));
Configure::write('Session', array(
'defaults' => 'database'
));


/// Create your session model in: Model/MySession.php

<?php
class MySession extends AppModel {
}


>From there you can do normal things like, tinkering with the $useTable to 
>change the table name.
You can just name that MySession to whatever you want to match your table, as 
with any CakePHP model.

Cheers,
Graham Weldon
http://grahamweldon.com
e. gra...@grahamweldon.com
p. (+61) 0407 017 293
Skype: grahamweldon


On Monday, 14 November 2011 at 8:38 PM, socrates wrote:

> Hello,
> I have create two separate web applications but this application have
> to share the same db, so I thought I would create two separate tables
> for session management on db, my question would be, can I do this
> through configuration, or do I create a new session handler?
> thanks for your attention
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> 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
> 
> 


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to