silverstripe / silverstripe-sharedraftcontent

Share draft page content with non-CMS users
BSD 3-Clause "New" or "Revised" License
21 stars 28 forks source link

Viewing preview URL logs out current user #160

Closed emteknetnz closed 2 years ago

emteknetnz commented 2 years ago

When you follow a shared draft link and you are logged in, it will logged you out.

This was identified via this issue: https://github.com/silverstripe/silverstripe-sharedraftcontent/pull/153#issuecomment-1050699391

This appears to clash with Session::$strict_user_agent_check (on by default), the session is invalidated on viewing a preview/ URL due to the change in UA string.

ACs

PR

sabina-talipova commented 2 years ago

Close prior PR. Had issues with unexpected commits after rebase. Open new PR https://github.com/silverstripe/silverstripe-sharedraftcontent/pull/168

GuySartorelli commented 2 years ago

Linked pr is merged.