Changing globals.php breaks login?

penguin8r wrote on Thursday, May 14, 2009:

Anyone else have the problem where if you change the openemr_name or session_name variables then you can’t log into the system anymore?  It says you should change these if you have more than one OpenEMR install on the same server, but if you change the text strings, then when you log in it starts to display the calendar, then immediately kicks you back out to a login prompt.  Is there some other value somewhere that has to be changed for this to work properly?

bradymiller wrote on Thursday, May 14, 2009:

hey,

I can’t replicate this in my developer version of openemr.

What version you using?

Anything going to your php error log?

Can you paste your exact changes to globals.php here.

-brady

penguin8r wrote on Friday, May 15, 2009:

I’m using v 3.0.1 from the current stable release tarball on SourceForge, I’ve been able to replicate it on a couple of different systems now.

in globals.php, I changed

session_name("OpenEMR");    to   session_name("OpenEMR v3.0.1")

$openemr_name = ‘OpenEMR’;    to   $openemr_name=‘OpenEMR V3’;

this was to try to differentiate it from an older install of OpenEMR 2.9 that still resides on the server & can’t yet be removed until we’re done testing some things in v3.0.1

will try to post some stuff from php error logs if I can find anything relevant in there.

bradymiller wrote on Friday, May 15, 2009:

quick thought,

Does it work if you remove the spaces in the session names?

-brady

bradymiller wrote on Friday, May 15, 2009:

Also try removing any special characters such as periods
-brady

bradymiller wrote on Friday, May 15, 2009:

sorry for the incomplete messages.

check out this link regarding use of session_name, looks like only alphanumeric characters are tolerated (also need at least one letter for some reason) :
http://us3.php.net/session_name

-brady

penguin8r wrote on Friday, May 15, 2009:

Yup, thanks Brady!  I think it hit both of us at the same time, it doesn’t like spaces or punctuation, take those out & it’s fine, so not really a problem, just something for folks to watch out for if they’re running multiple installs/different names.