@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);
        val ticketGrantingTicket = (String) requestContext.getCurrentEvent().getAttributes().get(TicketGrantingTicket.class.getName());
        val payload = CollectionUtils.wrap(ticketGrantingCookieBuilder.getCookieName(),
            ticketGrantingCookieBuilder.getCasCookieValueManager().buildCookieValue(ticketGrantingTicket, request));
        val sessionStorage = DefaultBrowserStorage.builder()
            .context(browserStorageContextKey)
            .storageType(determineStorageType(requestContext))
            .build()
            .setPayloadJson(payload);
        WebUtils.putBrowserStorage(requestContext, sessionStorage);
        return success(sessionStorage);
    }
This is {@link WriteBrowserStorageAction}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/storage/WriteBrowserStorageAction.java