Session expired immediately on testlink 1.9beta5

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
tavasti
TestLink user
Posts: 1
Joined: Tue Aug 24, 2010 11:21 am

Session expired immediately on testlink 1.9beta5

Post 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?
skliarie
TestLink user
Posts: 5
Joined: Mon Sep 20, 2010 12:10 pm

Re: Session expired immediately on testlink 1.9beta5

Post 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.
skliarie
TestLink user
Posts: 5
Joined: Mon Sep 20, 2010 12:10 pm

Re: Session expired immediately on testlink 1.9beta5

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

Re: Session expired immediately on testlink 1.9beta5

Post 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.
skliarie
TestLink user
Posts: 5
Joined: Mon Sep 20, 2010 12:10 pm

Re: Session expired immediately on testlink 1.9beta5

Post 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.
Post Reply