Jul 8th, 2011, 3:59 PM
Quote:It always works on the second attempt.
Ah..! It's probably this:
PHP sessions work per-domain, and to PHP, yoursite.com is totally different from http://www.yoursite.com. So if your $g_root_url value is set to "http://www.yoursite.com" but you go to "http://yoursite.com" to log in, it will fail to log you in, but redirect to "http://www.yoursite.com". The second time you try to log in, the sessions will work properly and you'll log in.
This sound like it may be the cause?
- Ben