<div dir="ltr"><div>I am probably missing some basics here.</div><div><br></div><div>If I send out a cookie from one domain,e,g, .<a href="http://perlmaven.com">perlmaven.com</a> the browser will only send it to <a href="http://perlmaven.com">perlmaven.com</a> and its subdomains.<br></div><div>Not to <a href="http://code-maven.com">code-maven.com</a> So when the user accesses <a href="http://code-maven.com">code-maven.com</a> how can I get the cookie?<br></div><div><br></div><div>Gabor<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 2, 2020 at 9:48 AM Matthew Mallard <<a href="mailto:matt@q-technologies.com.au">matt@q-technologies.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Without knowing how you have currently set up auth, I would probably centralise the authentication to a separate service that each of the your apps (domains) reached out to check whether the user was already logged into your realm and whether they were allowed access to that particular domain. That way you can have exceptions down the track (if that becomes a requirement).<div><br></div><div>Does that help or were you looking for something lower level?<br>
<div><br><blockquote type="cite"><div>On 2 Jun 2020, at 4:34 pm, Gabor Szabo <<a href="mailto:szabgab@gmail.com" target="_blank">szabgab@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Hi,<div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I run both the Perl Maven site <a href="http://perlmaven.com/" target="_blank">https://perlmaven.com/</a> and the Code Maven site <a href="http://code-maven.com/" target="_blank">https://code-maven.com/</a> on the same Dancer2 application. They even share the database behind.</div><div>Both also have several language-specific hostnames. e.g. one in Telugu: <a href="https://te.perlmaven.com/" target="_blank">https://te.perlmaven.com/</a></div><div><br></div><div>I would like to allow my users to log in any of the sites and then be already logged in all of the others. So they won't need to authenticate again.<br></div><div><br></div><div>How could I achieve this?</div><div><br></div><div>Gabor<br></div></div></div></div></div><a href="mailto:dancer-users@lists.preshweb.co.uk" target="_blank"></a></div></div></blockquote></div></div></div></blockquote></div><div><br></div><div><br></div><div><br></div></div>