Auto-login from admin page

phazeone

Joined: 2005-05-06
Posts: 1
Posted: Fri, 2005-05-06 09:17

Hello,

I have recently installed Gallery under /gallery on my website as a stand-alone application. This is working just fine.

Now I would like to patch the gallery to recognize an administrator session variable from the websites controlpanel, to enable single-signon, when a user is already logged in as an administrator. An administrator is recognized by having a $_SESSION['perm'] = "admin" set.

Is this possible without having to change the whole gallery code, and if so, where do I add this functionality?

Thanks in advance!

J. Daugaard