Re: SMF + CakePHP

2006-10-26 Thread Marcus

Hi,

there is no need to use sessions in my Applications.

I check the user's cookies before each action with beforeFilter in
app_controller.php. This means I have one extra DB read query per
action - a value that I can live with ;)

Cheers, Marcus

On Oct 25, 4:54 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Cool!
 SMF has an api file with functions that can help you check if the user
 is logged in. (use the forum's session).
 BTW after authenticating the user, do you store the info into Cake's
 cookie/session? I searched through this mailing list and find many
 posts about integrating phpBB and Cake's session,... which I dont
 really understand. I assume that phpBB doesnt have some kind of api
 file, because if you can call a function to retrieve the user's info
 from the forum's session, why would you want to store those infomation
 in Cake's session?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: SMF + CakePHP

2006-10-25 Thread [EMAIL PROTECTED]

Cool!
SMF has an api file with functions that can help you check if the user
is logged in. (use the forum's session).
BTW after authenticating the user, do you store the info into Cake's
cookie/session? I searched through this mailing list and find many
posts about integrating phpBB and Cake's session,... which I dont
really understand. I assume that phpBB doesnt have some kind of api
file, because if you can call a function to retrieve the user's info
from the forum's session, why would you want to store those infomation
in Cake's session?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: SMF + CakePHP

2006-10-24 Thread [EMAIL PROTECTED]

Anyone ? :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: SMF + CakePHP

2006-10-24 Thread Marcus

All of my CakePHP projects are integrated into vBulletin and simply use
the board's cookies.

When a user is logged in onto the board, he gets at least two cookies:
one with the user id and one with a password hash.

I can check the id and the password hash against the vBulletin user
table and can authenticate the user. A check for special user groups
like banned users or administrators is also possible.

I think it's possible to do something similar with SMF.

(Code for my vB-AuthComponent is about 3 KiB or so, 1 DB query is done
per CakePHP action - but it's easily possible to create a session after
initially authenticating the user against vBulletin. Then only one
query against the vBulletin database is needed for every session.).

Cheers, Marcus

On Oct 24, 6:04 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Anyone ? :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---