Class UserLogoutSuccessNotification
Notification that is published after a user has successfully logged out.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class UserLogoutSuccessNotification : UserNotification, INotification
Remarks
This notification is useful for audit logging and implementing custom sign-out redirect behavior.
Constructors
View SourceUserLogoutSuccessNotification(string, string?, string)
Initializes a new instance of the UserLogoutSuccessNotification class.
Declaration
public UserLogoutSuccessNotification(string ipAddress, string? affectedUserId, string performingUserId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | ipAddress | The source IP address of the user logging out. |
| string | affectedUserId | The ID of the user who logged out. |
| string | performingUserId | The ID of the user performing the logout action. |
Properties
View SourceSignOutRedirectUrl
Gets or sets the URL to redirect to after sign-out.
Declaration
public string? SignOutRedirectUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Handlers can set this property to customize the redirect URL after the user logs out.