<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello<div class=""><br class=""></div><div class="">I have a dancer2 app that uses </div><div class=""><br class=""></div><div class=""><span style="widows: 1; background-color: rgb(255, 255, 255);" class="">Dancer2::Session::Cookie</span></div><div class=""><span style="widows: 1; background-color: rgb(255, 255, 255);" class="">and</span></div><div class=""><div style="margin: 0px;" class="">Dancer2::Plugin::Auth::Extensible</div></div><div class=""><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">And I can set the cookie name in the config file</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">The app, however, serves multiple domains, and serves different content</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">based on</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">1) The user</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">and</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">2) the domain of the request</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">This all works as expected except</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">I would like to have different cookies for each domain so a single user can be looged in</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">more than once with different credentials on the same browser</span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">I have tried </span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">set session_cookie => ‘blah1.dancer.cookie’ </span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;" class=""><span style="background-color: rgb(255, 255, 255);" class="">and</span></div><div style="widows: 1;" class=""><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">config->{engines}{session}{Cookie}{cookie_name} = “blah1.dancer.cookie”</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">in the before hook, </div><div style="margin: 0px;" class="">but neither seem to affect the cookie name</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">Is what I am trying to do impossible?</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">If I have missed it in the docs I appoligise</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">TIA</div><div style="margin: 0px;" class=""><br class=""></div></div><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Clive Eisen</div><div class="">GPG: 75056DD0</div><div class=""><br class=""></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>