coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: jimbo on January 17, 2004, 12:47:10 PM

Title: Authentification
Post by: jimbo on January 17, 2004, 12:47:10 PM
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
Title: Authentification
Post by: Joachim Müller on January 18, 2004, 10:36:22 AM
sure, just "borrow" coppermine's authentification (cookie handling) and use it on other pages as well.

GauGau
Title: Authentification
Post by: jimbo on January 18, 2004, 11:30:40 AM
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
Title: Authentification
Post by: Joachim Müller on January 18, 2004, 12:08:55 PM
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
Title: Authentification
Post by: jimbo on January 18, 2004, 02:06:19 PM
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