Manager.LogoutURL
Manager.LogoutURL
The LogoutURL method returns the Microsoft® .NET Passport logout URL string.
Syntax
Function Manager.LogoutURL([returnUrl,] [coBrandArgs,] [lang_id,] [domain,] [bSecure]) As String
Parameters
- returnUrl
Optional string indicating the URL to which to redirect users after they sign out. A NULL value indicates that .NET Passport should use the value specified in the Passport Manager Administration utility. The return URL must be fully qualified and point to a named file.
- coBrandArgs
Optional string value that specifies variables that are appended to the URL of the cobranding template script page. Supplying a NULL value indicates that .NET Passport should use the Cobrand Args value specified in the Passport Manager Administration utility.
- lang_id
Optional integer value that specifies the language for the Sign-out page. Supplying a -1 indicates that .NET Passport should use the default value specified in the Passport Manager Administration utility.
- domain
Optional string specifying the .NET Passport domain as detected by user context. In most cases, sites should accept the user context rather than trying to specify a particular .NET Passport domain that will serve the Sign-out page.
- bSecure
Optional Boolean that indicates whether the sign-out user interface (UI) should be served over HTTPS from the .NET Passport domain. Use False to indicate that at least some of the .NET Passport pages have been served over HTTP, or True to indicate that the entire series of .NET Passport pages have been served over HTTPS.
Return values
The LogoutURL method returns a string value indicating the URL of the appropriate network Sign-out page as customized for the currently connected .NET Passport user.
Example
The following snippet uses the LogoutURL method using default parameters.
... 'Create a Passport Object Dim oMgr Set oMgr = Server.CreateObject("Passport.Manager") Response.Write ("<br><br>LogoutURL ():<br><b>" & oMgr.LogoutURL& "</b> - " & oMgr.LogoTag2(oMgr.LogoutURL)) ...
See Also