$_SESSION['scriptcase']['display_mobile']; returns TRUE even when not on mobile

Hi. Since years ago in 8.1 I have used 2 of teh scriptcase session variables to help customize my code if on a mobile device:

// set the following - will be NULL is web and 1 if mobile
[glo_device_mobile] = $_SESSION[‘scriptcase’][‘device_mobile’];
[glo_display_mobile] = $_SESSION[‘scriptcase’][‘display_mobile’];

You can see these if you do an echo var_dump like:

echo var_dump($_SESSION); // gives all the scriptcase session variable values

A snippet of the output is as follows:

array(112) { [“scriptcase”]=> array(133) { [“device_mobile”]=> bool(false) [“display_mobile”]=> bool(true)

Are other people seeing this?
What a pain in the @$%$6%$!

Thanks,
Jamie

Hi Jamie.

I did a quick test, just with a blank app, and searching the $_SESSION dump, and both glo_device_mobile and glo_display_mobile return null in my dev machine.

MK

Thank you. Interesting. I will have to experiment with various PCs and devices. Maybe it is the browser I develop on?
Thanks for the info.
Jamie