1

I have Case which my ASP.NET MVC Projects separated in single project. How can use one session to Authorize all project Users ?

What i do Now is Creating base Controller & Validate on Session On ActionExcuting Method but when navigate to another Project Session is gone.

Hint i dont need Areas in Projects

2- Cookie is not suitable for me

Thanks in advance.

cyberlobe
  • 1,783
  • 1
  • 18
  • 30

1 Answers1

1

first option is session state in SQL server

second option make use of Session State Server.

both options may require some hacks to work. there are many questions and answers on stackoverflow about this.

RedgoodBreaker
  • 310
  • 1
  • 10
  • 1
    Thanks For Your Reply any Links For this Options – Sherif Elshahat Jan 03 '17 at 10:24
  • basics you can find on https://technet.microsoft.com/en-us/library/cc754032(v=ws.10).aspx . About hacks look for "session state server two applications" or "sql server session state two applications" examples: http://stackoverflow.com/questions/13130239/sharing-sql-server-session-state-across-web-applications http://stackoverflow.com/questions/3292359/why-cant-i-share-session-state-between-2-web-apps-with-stateserver-what-am-i-m – RedgoodBreaker Jan 03 '17 at 13:18