User's Manual

51
16.
Initialization of the client object with the token identification Label; the Label entry is a client ActiveX
variable inside the HTML document; the entry Aplication("wi_Label") is interpreted by the server
side and then replaced with the label chosen for the service.
17.
Call of the Crypt method of the client ActiveX for encrypting the data to send to the client (Name). The
encrypted value is stored in the Name variable of the WebIdData form.
18.
Explicit call to the form submit for sending the encrypted Name variable to the web server with POST.
The web page, prearranged for receiving the encrypted information by the client, is represented by the following listing
(changeuserdata.asp):
<%
Dim WIDS
Set WIDS = Server.CreateObject("WISrv.WebIdSrv")
WIDS.pin = Session("user_PIN")
WIDS.RndSessionString = Session("SessionString")
WIDS.password = Application("wi_Password")
Dim Name
Name = WIDS.Decrypt( Request.Form("Name") )
Dim objConn, strSQL
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open Application("Users_ConnectionString")
strSQL = "UPDATE User SET Name='" & Name & "' WHERE User.PIN = '" &
Server.HTMLEncode(WIDS.pin) & "'"
objConn.Execute strSQL
objConn.Close
Set objConn = Nothing
Set WIDS = Nothing
%>
<html>
<head>
<title>User Data</title>
</head>
<body>
<p>OK</p>
</body></html>
1
2
3
4
5
6