Re: Testing
- Posted by jimcbrown (admin) Oct 04, 2008
- 1227 views
Upon rereading my post, I want to make clear that I believe jacquesd when he says he has found the bug.
He found the bug, but I don't seem able to reproduce it properly, which makes debugging and fixing the bug more difficult.
Finally I localized the login bug. It is not in the euForum code but in datetime.e library. When in login form if the <remember me forever> checkbox is not checked, euforum code try to set a cookie that expires in 1 hour. the actual code is:
<snip>
the dt:add() function return a date prior to actual date so the browser doesn't set the cookie as it is already expired. This is a bug to be solved by the datetime.e library maintainer.
For my part I will replaced all 1 hours cookies by session cookies. Those expires when the browser is closed. Login that is not set forever will last the browser session.
Jacques
One possibility that occurs to me is that the server that the code is running on might be running slow... though it'd have to be off by more than an hour for the cookie to be rejected immediately by the browser.