Skip to main content

Client Side

Description

When the CAPTCHA creation service is called, the system generates and stores a state after creating the CAPTCHA. By default, the state is stored on the client side, meaning it is saved in a client-side cookie. You can customize this behavior as shown below.

Configuration


builder.Services.AddEasiCaptcha(easiOption =>
{

easiOption.StateConfiguration.UseClientSideState(option =>
{
option.Key = "cookie_key";
option.Expires = TimeSpan.FromMinutes(10);
});
});