Authentification Authentification
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Authentification

Started by jimbo, January 17, 2004, 12:47:10 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jimbo

Hi,

I have integrated cpg into my site. At the moment I am running two auth systems - 1 for areas of the site and 1 for cpg. Both systems use the same mysql table. I would like to avoid having my users log in twice!!

Question is: can one integrate the cpg authentification method on other pages not directly related to cpg?

Cheers
Jimbo

Joachim Müller

sure, just "borrow" coppermine's authentification (cookie handling) and use it on other pages as well.

GauGau

jimbo

Thanks GauGau, so I suppose that means including the file init.inc.php. Or is it another file. Sorry I'm not that advanced on programming!!

Thanks again
Jimbo

Joachim Müller

I recommend not including the whole file, but take out the authentification bits and create a separate file out of it and include that. Remember that cookie handling (http headers) has to be done before the output starts.

GauGau

jimbo

Cheers for all your help, I have to admit I've tried all morning but to no avail. :x

I'll try again but if you could offer some pointers I'd be most greatful

Danke!
Jimbo