Developer forum

Forum » CMS - Standard features » Share login between 2 different areas

Share login between 2 different areas

Ricardo Pereira
Ricardo Pereira
Reply

Hi Guys,

I have a solution with 2 different areas matching 2 different DNS, however the login should be shared between the 2 areas/DNS. Is this possible?

DW version is the 9.3.9

 

Thanks,
Ricardo
 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

You can use the same credentials, but you cannot share the same login session across hostnames because it is controlled by session/cookies that hostnames do not share.

You can if the user logs in to one solution, create a link to the other solution doing something like this:

$"http://otherhhost.domain.com/?username={User.Username}&PwToken={Dynamicweb.Frontend.LoginHandler.GetLoginToken(User.Username, User.Password)}"

BR Nicolai

Votes for this answer: 1
 
Ricardo Pereira
Ricardo Pereira
Reply

Thank you, Nicolai.

 

You must be logged in to post in the forum