run endSession in web-utilities-hdl.
FUNCTION dropUser RETURNS CHAR (INPUT dropMessage AS CHAR):
SETSESSION("sessionTime","").
RUN endSession IN web-utilities-hdl.
RETURN "<a href='login.html' target='_parent'>" + dropMessage + "</a>".
LEAVE.
END FUNCTION.
I read the post with much interest and managed to get this to work on my own webspeed server. Problem is that
criticals informations maybe stored in plain text in that .tmp file like the "user" information.
DEFINE VARIABLE encryptedUser AS CHAR NO-UNDO.
encryptedUser = BASE64-ENCODE(ENCRYPT(exu,GENERATE-PBE-KEY(SESSION:SERVER-CONNECTION-ID)) ).
setSession("exuser",encryptedUser).
DEFINE VARIABLE xmemUser AS MEMPTR NO-UNDO.
ASSIGN SET-SIZE(xmemUser) = LENGTH(getSession("exuser"))
xmemUser = BASE64-DECODE(getSession("exuser"))
exu = STRING(DECRYPT(xmemUser,GENERATE-PBE-KEY(SESSION:SERVER-CONNECTION-ID))).