Apr 29th, 2010, 4:36 PM
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
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