integrate_verify_user

Started by eprigge, April 29, 2008, 02:58:27 AM

Previous topic - Next topic

eprigge

Hi,

I have a custom made CMS/portal that I want to use to automate logins to SMF.  Currently I have implemented the 'integrate_verify_user' hook after CMS authentication to log users into SMF.  On first load of the forum page (within the CMS site), the user appears to be logged in correctly and when necessary they have a record inserted into smf_members.

It seems to work but then if you click on any link in SMF after this, it appears that the user actually isn't logged in.  I would guess because the SMF cookie isn't set yet?

How do I automate the logging in to SMF so that the cookie is set etc. without forcing users who are already logged in to the CMS to log in again with SMF.

OR should I seek to have SMF always be loaded inside the pages of the CMS site so that 'integrate_verify_user' hook always runs...?

Please bear with me, I'm sure this is dead simple...  thanks.

Orstio

QuoteOR should I seek to have SMF always be loaded inside the pages of the CMS site so that 'integrate_verify_user' hook always runs...?

That would be the ideal method, yes.

Advertisement: