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

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

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