locked
Session is not working in Firefox while working in Chrome RRS feed

  • Question

  • User283528319 posted

    hi all,

    in my .net core 2.1 project Session is not working in Firefox while working in Chrome

    what may cause this?

    Saturday, July 20, 2019 5:33 AM

All replies

  • User-821857111 posted

    Session management relies on cookies. Check the Firefox settings to make sure that cookies are not blocked.

    Saturday, July 20, 2019 7:19 AM
  • User283528319 posted

    what about cookieless sessions?

    how can I set them up in .net core?

    Saturday, July 20, 2019 8:50 AM
  • User-821857111 posted

    Cookieless sessions are not supported within ASP.NET Core. It might be possible for you to write your own session provider to cater for this, but generally, cookieless sessions are considered insecure. You should insist that your users enable cookies, ideally.

    Saturday, July 20, 2019 10:17 AM
  • User283528319 posted

    is there any way to ask the user to enable cookies and do it?

    Saturday, July 20, 2019 10:30 AM
  • User475983607 posted

    is there any way to ask the user to enable cookies and do it?

    Add a message that cookies are required. 

    Maybe cookie policy is enabled and a user selected no.

    app.UseCookiePolicy();

    https://docs.microsoft.com/en-us/aspnet/core/security/gdpr?view=aspnetcore-2.2


     

    Saturday, July 20, 2019 11:49 AM