The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Will not login on first try - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Will not login on first try (/showthread.php?tid=676) |
Will not login on first try - bill09 - Apr 28th, 2010 Hi Ben, For some reason I have to login twice to get into Formtools. (admin or client) When I enter the login information, I receive the following error: "No user account ID was found in sessions. Please log in again below." The second attempt, using the same credentials, always works. I have tried using IE8 and Chrome browsers with the same result. I looked on the forums and tried adding $g_session_type = "database"; to config, but then I could not login at all. Have you run into this before? Thanks, Bill RE: Will not login on first try - Ben - Apr 29th, 2010 Hi Bill, This can happen if you link to http://www.yoursite.com/ or http://yoursite.com and the $g_root_url value has the other one specified (see your /global/config.php). What happens is that the script creates the login session information on one location, then redirects to a URL based on $g_root_url, which is then unable to FIND the sessions and boots you out. Second time round, the URL is the same so you can log in. The simple fix is to link to the right URL first time round. Alternatively (and more elegantly), some hosts let you force there to be either www or not showing up for all URLs. That will fix it automatically. Hope this helps - - Ben RE: Will not login on first try - bill09 - Apr 29th, 2010 Ben, That did it! Changed it in the config file. Thanks. One thing I noticed that was strange though, even though the logout URL was also updated with the www prefix, after logging out I am still directed to the URL without the www prefix. It shows correctly in the settings table also. Not sure what that is. Take care, Bill (Apr 29th, 2010, 4:36 PM)Ben Wrote: Hi Bill, RE: Will not login on first try - Ben - May 1st, 2010 Hey Bill, Yeah, this is a bit annoying, I admit. Whenever I move installations from one site to another this always trips me up. But I think it's largely unavoidable. The logout URLs are configured for each account and once created are independent of the $g_root_url value. To fix it, just go to Your Account in the Form Tools menu and change the logout URL. Likewise, any client accounts will need to do the same. - Ben RE: Will not login on first try - bill09 - May 3rd, 2010 Thanks Ben! (May 1st, 2010, 10:26 AM)Ben Wrote: Hey Bill, |