0

How to cross session in diff application but in same domain?

For example .. there are two website URL.

http://test.com.tw/FirstApp/Index

http://test.com.tw/SecondApp/Index

When First Website Set Session

Session["TempID"] = "Temp String"

How can second website to get Session["TempID"]'s Value?

I have try to get the value in second website..

but it's null...

鄭有維
  • 265
  • 1
  • 13
  • By default session cannot be shared between different applications. You may found some special way to share session between application. But not all of them work. Some of them are feasible in theory, but there are problems in actual operation. So I recommend you to use SQL server to store session as @iamdlm said. It is safer and more reliable. – Bruce Zhang Sep 15 '21 at 06:23

1 Answers1

0

The "seemingly official" way is to use SQL Server session.

In case you can't use SQL server for any reason, then you can tweak the IIS applications so that you can use Out-of-process session.

iamdlm
  • 1,885
  • 1
  • 11
  • 21