At present we have a Wireless system that uses WISPr to hand off the front end Wi-Fi authentication to a webserver, and in our case this is a Windows Server with CMS Made Simple on it. The webserver gets traffic from the Wi-Fi controller with all the information on the query string, for example "?loc=blah&sip=123.123.123.123&ip=123.123.123.123". So once the webserver receives the information i am trying to keep it nestled in the users session via a UDT, so we can ask the user to login. We then call it in a few pages and a forms that i have created to get the user to agree to the terms and conditions of service. However when the hits the page the data goes into an array and that array is put into the users session the second you navigate away from the page the data is missing but the array is there with the data headings. The code i am using is below
Code: Select all
$wifidata = array();
$wifidata['sip'] = htmlspecialchars($_GET["sip"]);
$wifidata['mac'] = htmlspecialchars($_GET["mac"]);
$wifidata['client_mac'] = htmlspecialchars($_GET["client_mac"]);
$wifidata['uip'] = htmlspecialchars($_GET["uip"]);
$wifidata['lid'] = htmlspecialchars($_GET["lid"]);
$wifidata['dn'] = htmlspecialchars($_GET["dn"]);
$wifidata['url'] = htmlspecialchars($_GET["url"]);
$wifidata['ssid'] = htmlspecialchars($_GET["ssid"]);
$wifidata['loc'] = htmlspecialchars($_GET["loc"]);
$wifidata['vlan'] = htmlspecialchars($_GET["vlan"]);
$smarty->assign('wifidatapass',$wifidata);
$_SESSION[$var] = $wifidata;
I am not a PHP expert and thats why i like CMS Made Simple because it just works with very limited knowledge however i am a little out of my depth at the moment.
A