HttpContext.Session.GetString("key");
does not work. So how can I do it ?
Also is this the best approach to pass values here using Sessions or there is something else built-in nopcommerce.
protected virtual IActionResult ErrorAuthentication(IEnumerable<string> errors, string returnUrl)
{
var session = _httpContextAccessor.HttpContext?.Session;
if (session != null)
{
var existsErrors = session.Get<IList<string>>(NopAuthenticationDefaults.ExternalAuthenticationErrorsSessionKey)?.ToList() ?? new List<string>();
...
public virtual async Task<IActionResult> SelectBillingAddress(...
...
await _genericAttributeService.SaveAttributeAsync<ShippingOption>(customer, NopCustomerDefaults.SelectedShippingOptionAttribute, null, store.Id);