<?php require_once "../private/lib/utilities.php"; $data = Seed::generateSeed(); $sid = $data['login']['id']; $seed = $data['login']['seed']; $uid = 'acme123'; $password = '******'; $hash = sha1($uid . md5($password) . $seed); echo $sid . ": " . $seed . "<br>"; echo $hash . "<br>"; $employer = new Employer($uid, $sid); ?> <p style="font-weight: bold;">Logging in... </p><p><?php if ($employer->isRegistered($hash)) { if ($employer->setSessionWith($hash)) { echo "Success"; } } if (!$employer->isLoggedIn($hash)) { echo "failed"; exit; } ?> </p><p style="font-weight: bold;">Update my details... </p><p><?php $old_data = $employer->get(); echo "Before...<br><br>"; echo "<pre>"; print_r($old_data); echo "</pre><br><br>"; $data = array();