Nav Menu options force logout

aperezcrespo wrote on Tuesday, July 31, 2007:

Did a CVS update yesterday now all users are forced out whenever one clicks on any option on the Nav menu.
Heres whats in the apache error log file.
[Tue Jul 31 08:24:33 2007] [error] [client 192.168.100.100] PHP Notice:  Undefined variable: ignoreAuth in /srv/www/htdocs/openemr/interface/globals.php on line 171, referer: http://192.168.100.10/openemr/interface/main/main_navigation.php
[Tue Jul 31 08:24:33 2007] [error] [client 192.168.100.100] PHP Notice:  Undefined index:  authUser in /srv/www/htdocs/openemr/library/auth.inc on line 41, referer: http://192.168.100.10/openemr/interface/main/main_navigation.php
[Tue Jul 31 08:24:33 2007] [error] [client 192.168.100.100] PHP Notice:  Undefined index:  authProvider in /srv/www/htdocs/openemr/library/auth.inc on line 41, referer: http://192.168.100.10/openemr/interface/main/main_navigation.php

Thanks
Alfonso

aperezcrespo wrote on Tuesday, July 31, 2007:

Its actually is an IE thing.  It works fine with Firefox.
Any thoughts?
Thanks
Alfonso

sunsetsystems wrote on Tuesday, July 31, 2007:

Sounds like I messed something up.  Which version of IE do you have?

Rod
www.sunsetsystems.com

aperezcrespo wrote on Tuesday, July 31, 2007:

I tested with Firefox and IE 7, both work fine.

IE 6 on the other hand has the problem.

Alfonso

sunsetsystems wrote on Tuesday, July 31, 2007:

OK, let’s do a test.  In interface/main/main_screen.php at line 34 is this:

function restoreSession() {
document.cookie = ‘<?php echo session_name() . ‘=’ . session_id(); ?>; path=/’;
return true;
}

Please (temporarily) insert two "alert" lines so it looks like this:

function restoreSession() {
alert('Old: ’ + document.cookie);
document.cookie = ‘<?php echo session_name() . ‘=’ . session_id(); ?>; path=/’;
alert('New: ’ + document.cookie);
return true;
}

and let me know what the result is immediately after you click one of the nav items.

You might email me offline so we do not clutter things up here needlessly.  Rod at sunsetsystems dot com.

Thanks.

Rod
www.sunsetsystems.com