I\\\'m having a difficult time figuring out what\\\'s gone wrong here. Options in hdconfig appear to be set correctly, directory in hdbase seems to be set correctly, but the first time I go to the page with require_once devices.redirect, it loads as normal, but any time you click the \\\"Home\\\' logo to reload that same page, it jumps to the mobile site permanently.
using XP SP3 and FF 3.5, accessing a directory with only index.php in it.
December 16, 2009 02:45
support
Handset Detection
Hi,
Did you install \'user agent switcher\' ? if you did, you may change the setting in FF - tools - user-agent. And if you don\'t mind, could you please send your hdapi folder including files to me via email, so that I could check for you.
Thanks for your question. Looking forward to hearing from you.
Cheers,
Bill
bill@handsetdetection.com
December 16, 2009 17:28
support
Handset Detection
I did install User Agent Switcher, but that\'s not really the issue here. The script redirects to the mobile site even when the default user agent (Firefox) is selected. Additionally, my tests have generated four hits on my user stats history, and checking back here, I see that none of those hits are detecting a mobile user agent (which is correct). So it seems that the script looks at my browser, says \"this is not a mobile\", sends data back here saying it\'s not a mobile, and then redirects the page anyway.
Files are on their way to you, but other than setting my options in hdconfig, and the directory setting in hdbase, I haven\'t altered anything from the time I downloaded yesterday.
December 17, 2009 02:01
support
Handset Detection
Hi,
Thanks for your email, I checked them and the settings are all fine. I think the issue is about session, I recommend you to put the \"require_once(\'hdapi/devices.redirect.php\")\' at the very top of your index page even before \'session_start();\'.
If it helps you a little, please let me know.
Bill
bill@handsetdetection.com
December 17, 2009 10:59
support
Handset Detection
That was the problem exactly! I thought I could get away with putting session_start before the redirect, but now it works precisely as intended! Thank you!
Comments