ripple login state across wiki sites open within wiki domain

This commit is contained in:
Paul Rodwell
2016-05-29 19:28:46 +01:00
parent a428f92dfc
commit 0c55a09cf5
2 changed files with 24 additions and 4 deletions

View File

@ -17,6 +17,8 @@
</body>
<script src="/security/winchan.js"></script>
<script>
document.cookie = "state=loggedIn" + ";domain=." + window.location.hostname + "; path=/; max-age=60;"
var wc = WinChan.onOpen(function(origin, r, cb) {
cb({
done: true,