Page 1 of 1

TestLink and Mantis Login Logout problem (FIXED)

Posted: Wed Jun 02, 2010 8:16 am
by karl.reichert
Hello,

I'm using TestLink 1.8.5 and MantisBT 1.1.8 running on the same machine (wampserver 2.0).

I have the following problem: I login into TestLink using Firefox, then open another tab in Firefox and login into Mantis. Then I click Logout in Mantis and close the Mantis tab in Firefox. If I click any button now in TestLink, a screen is presented, asking me to login in TestLink again, because my session was timeout.

This is really annoying, because sometimes I'm editing a testcase in TestLink, meanwhile check in Mantis and close Mantis, and when I try to save my changes of the testcase in TestLink, I get this timeout and all my changes are lost.

I guess it is a problem with PHP and/or my PHP configuration. But I did not found any solution searching the internet. Anyone knows what to do?

Thanks in advance!
Best regards
Karl

Re: TestLink and Mantis Login Logout problem

Posted: Wed Jun 02, 2010 9:27 am
by fman
tabs are a pain.
Try configuring your browser to use private browsing (look for info on net)

Re: TestLink and Mantis Login Logout problem

Posted: Wed Jun 02, 2010 9:46 am
by karl.reichert
This does not really solve my probleme, because not everybody in my company uses Firefox, some are using Internet Explorer, too. So I really need to find out, what's the probleme here. Any ideas?

Re: TestLink and Mantis Login Logout problem

Posted: Wed Jun 02, 2010 1:00 pm
by fman
I think also IE 8 support private browsing.

Re: TestLink and Mantis Login Logout problem

Posted: Thu Jun 03, 2010 12:05 pm
by ceguyot
I have the same problem, I try to fix it since one week and I found any solution

Re: TestLink and Mantis Login Logout problem

Posted: Mon Jul 12, 2010 10:17 am
by Micha
I have the same problem, too.
Private browsing (Firefox, IE8) seems to be no solution. With activated private browsing I have still the logout problem.
And I have tried to changed some Mantis configurations ($g_session_save_path, etc.) but without any result.

Any other solution??

Re: TestLink and Mantis Login Logout problem

Posted: Tue Jul 13, 2010 7:13 am
by Micha
Here is a solution:
Set the parameter '$g_cookie_path' in Mantis configuration to your Mantis path on your server (more info: http://www.php.net/manual/en/function.setcookie.php).
e.g. $g_cookie_path = '/mantis/';

Background:
Mantis and TestLink use both the browser cookie for the php session named 'PHPSESSID' (standard php configuration). If Mantis and TestLink are installed on the same server, (e.g. localhost for testing), the same cookie is used. And every time a user logs out in Mantis, this PHPSESSID cookie is renewed. So for TestLink also the session is ended at this moment.
With the solution above the php session cookie of Mantis is only available for Mantis and does not interrupt the TestLink session.

I am not a php expert, but this seems to be the problem and the cookie-path soloution works well in my Mantis and TestLink environment.

Micha

Re: TestLink and Mantis Login Logout problem

Posted: Tue Jul 13, 2010 11:41 am
by ceguyot
It works !

thanks a lot

Re: TestLink and Mantis Login Logout problem (FIXED)

Posted: Mon Sep 27, 2010 11:23 am
by karl.reichert
Works for me, too. :)
Thank you very much!