How to always stay logged in How to always stay logged in
 

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]

Main Menu

How to always stay logged in

Started by comptech520, September 09, 2007, 02:33:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

comptech520

Hello,

I am using Coppermine on my Intranet which requires a login anyways so why log in twice?

How can I ALWAYS stay logged in as an admin with copper mine. Where and what code would I have to add?

Sami

#1
{gallery-root}/include/functions.inc.php => function create_session()
but this way all of users will take the changes

Edit :
Correct path to create_session() function is
{gallery-root}/include/coppermine.inc.php => function create_session()
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

You might want to review the LDAP bridge that recently has been contributed.

comptech520

I put the
function create_session()
in the correct file and I got some errors

I just want to be logged in as admin all the time


Quote from: Sami on September 09, 2007, 02:59:41 PM
{gallery-root}/include/functions.inc.php => function create_session()
but this way all of users will take the changes

Joachim Müller

You can not add a second instance of the function definition. Undo your changes.
Why don't you just tick the remember me option when logging in? Did you take a look at the LDAP bridge?

Sami

As GauGau suggested LDAP bridge would be best option for you under intranet

Quote from: comptech520 on September 10, 2007, 12:35:09 AM
I put the
function create_session()
in the correct file and I got some errors

I just want to be logged in as admin all the time
Sorry that was my mistake !
create_session function is under coppermine.inc.php line #276
You shouldn't put that function anywhere , you just need to change setcookie function's time (CPG_WEEK*2) to something big like this :CPG_WEEK*20 then when you set the remember me option your login stays for 20 weeks
‍I don't answer to PM with support question
Please post your issue to related board