TestLink and Mantis Login Logout problem (FIXED)

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
karl.reichert
Advanced user
Posts: 17
Joined: Thu Apr 02, 2009 9:56 am

TestLink and Mantis Login Logout problem (FIXED)

Post 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
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: TestLink and Mantis Login Logout problem

Post by fman »

tabs are a pain.
Try configuring your browser to use private browsing (look for info on net)
karl.reichert
Advanced user
Posts: 17
Joined: Thu Apr 02, 2009 9:56 am

Re: TestLink and Mantis Login Logout problem

Post 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?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: TestLink and Mantis Login Logout problem

Post by fman »

I think also IE 8 support private browsing.
ceguyot
TestLink user
Posts: 4
Joined: Thu May 27, 2010 11:39 am

Re: TestLink and Mantis Login Logout problem

Post by ceguyot »

I have the same problem, I try to fix it since one week and I found any solution
Micha
TestLink user
Posts: 6
Joined: Mon Jul 12, 2010 10:02 am

Re: TestLink and Mantis Login Logout problem

Post 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??
Micha
TestLink user
Posts: 6
Joined: Mon Jul 12, 2010 10:02 am

Re: TestLink and Mantis Login Logout problem

Post 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
ceguyot
TestLink user
Posts: 4
Joined: Thu May 27, 2010 11:39 am

Re: TestLink and Mantis Login Logout problem

Post by ceguyot »

It works !

thanks a lot
karl.reichert
Advanced user
Posts: 17
Joined: Thu Apr 02, 2009 9:56 am

Re: TestLink and Mantis Login Logout problem (FIXED)

Post by karl.reichert »

Works for me, too. :)
Thank you very much!
Locked