Flicks FAQ: Userexpiration


Back to the top of the FAQ

UserExpiration

The UserExpiration property gets or sets a specified user's password.
Once you have the current username (with CurrentUserName), use this function to get the user's expiration out of the internal database.
If you are using an ODBC database, use ASP/ADO to get the user details out of your ODBC database instead.

Syntax

UserExpiration (userName)

Parameters

userName
Specifies the name of the user.

Example

The following gets a user's Expiration date.

<% 
usingAuthentiXStandard = true
if (usingAuthentiXStandard) then
Set AuthX = Server.CreateObject("AUTHXOCX.AuthXOCXCtrl.1") 
else
Set AuthX = Server.CreateObject("AUTHXISP.AuthXOCXCtrl.1") 
protectedDomain = Request.ServerVariables("LOCAL_ADDR")
'protectedDomain = "hostheader.com"
AuthX.SetVirtualDomain protectedDomain, Request.ServerVariables("SCRIPT_NAME")
AuthX.SetVirtualDomainPassword("")
end if
%>
Brian's expiration date is
<%= AuthX.UserExpiration("Brian") %>

<% AuthX.UserExpiration("Brian") =  now + 1 %>
Brian's expiration date is now tomorrow:
<%= AuthX.UserExpiration("Brian") %>
 
See the VBScript documentation on how to create dates of various times.

Applies To

AuthentiX OCX Component

http://www.flicks.com/authentix/discover/main.htm

Back to the top of the FAQ