Page 1 of 1
Session expired immediately on testlink 1.9beta5
Posted: Tue Aug 24, 2010 11:58 am
by tavasti
I installed latest testlink 1.9beta5 to our linux server. Unfortunately login doesn't work. After login on apache logs I see index.php request, and immediately end back to login, saying 'Your session has expired! Please login again.'
Same symptoms were reported on this thread:
http://www.teamst.org/forum/viewtopic.php?f=9&t=1910
Any ideas?
Re: Session expired immediately on testlink 1.9beta5
Posted: Mon Sep 20, 2010 12:39 pm
by skliarie
the same happens in testlink 1.9 beta6:
on my firefox 3.6.10 on Linux the sessions management works properly. On the same version of firefox on windows I always see the "Your session has expired! Please login again." and I can't login even with proper credentials.
Both Linux and Windows have proper timezone set.
Re: Session expired immediately on testlink 1.9beta5
Posted: Tue Sep 21, 2010 10:54 am
by skliarie
Found the problem - I had accidentally put additional ENTER at the end of custom_config.inc.php file. I discovered the problem only when I saw this
session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /var/www/atp.mycompany.com/testlink/testlink_1_9_beta6/custom_config.inc.php:7) - in /var/www/atp.mycompany.com/testlink/testlink_1_9_beta6/login.php - Line 166
made me wonder why didn't testlink warned me about the problem...
Re: Session expired immediately on testlink 1.9beta5
Posted: Tue Sep 21, 2010 2:45 pm
by fman
How do you think system is able to understand there is an addition CR on file ?
If you have the answer please contribute with solution instead on complain.
Re: Session expired immediately on testlink 1.9beta5
Posted: Tue Sep 21, 2010 3:03 pm
by skliarie
It should be pretty trivial to check whether there are excessive <CR>s after final "?>" in the custom_config.inc.php file as this is the only file users might modify.
Other (IMHO dirtier) option is to unmask the errors to go to browser.