Talk:XRX/Login and Session Management

This is the xquery that goes with my login form. It generates an error on login failure whaich gets picked up by the login form. It works with both GET and POST submission forms. {$user} {$password}  let $append-result := update insert $my-doc into doc("/home/tony/myfile.xml")

let $res := if ($notloginokay) then error(xs:QName('d:InvalidLogin')) else $loginokay return $my-doc

Tony.wallace.nz (discuss • contribs) 00:00, 5 January 2012 (UTC)