locked
asp.net and aspnet core session sharing RRS feed

  • Question

  • User-1225169881 posted

    hi, 

    please suggest a better resource for asp.net and aspnetsession sharing among each other . 

    best practices when using two applications full dotnet and aspnet core.

    session sharnig among them 

    Thursday, April 20, 2017 4:06 AM

All replies

  • User1108898723 posted

    If classic asp.net and .net core apps are hosted on different servers you may use Redis or Memcached (clients exists for both full .net framework and netcore).

    Another alternative might be using aspnet core app as primary session holder (say, it may use standard in-memory session implementation), and when data is needed from asp.net get it with web API.

    Thursday, April 20, 2017 7:35 AM
  • User-1095120877 posted

    Since your ASP.NET and .NET Core (even both ASP.NET or both Core .NET apps) will be hosted in separate app pool, by default i.e. InProc session state won't help you. You will need a session state provider e.g. Sql Server.

    Friday, April 21, 2017 2:36 AM
  • User-1225169881 posted

    very ture, I've finally made a custom framework for session management, 

    Thanks, kishore

    Sunday, September 1, 2019 2:32 AM
  • User-1225169881 posted

    true, i've come up with  a custom solution finally, 

    Sunday, September 1, 2019 2:33 AM
  • User-686409839 posted

    Could you please share idea about middleware .. We have same kind of requirement and want to share session between ASP.Net and ASp.Net Core . Could you please help by clarifying basic idea about middleware. Thanks for your help!

    Sunday, May 31, 2020 1:18 PM