Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Authentification  (Read 2427 times)

0 Members and 1 Guest are viewing this topic.

jimbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Authentification
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Authentification
« Reply #1 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
Logged

jimbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Authentification
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Authentification
« Reply #3 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
Logged

jimbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Authentification
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 14 queries.