Click here to Skip to main content
15,886,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to launch another web application from my web application.
Let's say my web app 'A' want to bring user to another web app 'B'.
'B' need user to login again. But i don't want this way since 'A' and 'B' share same credential(UN&PW).
So once user login 'A' and then click somewhere to go in 'B' where user can directly go into 'B' pages without logging in again.

My question is what is the best approach?

What I have tried:

I have tried using
Session
but not work well.
Posted
Updated 17-Apr-20 7:35am
Comments
DerekT-P 17-Apr-20 4:18am    
Are apps A and B on the same server? Do they share the same database / datastore? What authentication method are you using? trying "Session" doesn't really do anything other than cause a compilation error, as it's not a method name. You need to provide more information about context and, in "what I have tried", we need to see your code, not just a single word.
F-ES Sitecore 17-Apr-20 6:50am    
You need to implement "single sign on" on both site A and B.

1 solution

Basically you cannot do that, if you're logged in site A you cannot be logged in site B, but there's a trick, you can pass the cookie or session to site B by links and then inject it.

Example:

<a href="siteB.com/?token=mysession">go to site B</a>

Then you will need to do a config in your siteB to detect sessions and inject them.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900