# What exactly goes on when DELETE /session/username is invoked?

**URL:** <https://meta.discourse.org/t/what-exactly-goes-on-when-delete-session-username-is-invoked/53993>\
**Category:** Development\
**Created:** [Dezembro 9, 2016, 12:37am UTC](https://meta.discourse.org/t/what-exactly-goes-on-when-delete-session-username-is-invoked/53993 "2016-12-09T00:37:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Dezembro 9, 2016, 12:44am UTC](https://meta.discourse.org/t/what-exactly-goes-on-when-delete-session-username-is-invoked/53993/2 "2016-12-09T00:44:40Z")

</div>

> <https://github.com/discourse/discourse/blob/master/app/controllers/session_controller.rb#L247-L255>

> <https://github.com/discourse/discourse/blob/5dbd6a304bed5400be481d71061d3e3ebb4d6785/lib/current_user.rb#L21-L23>

> <https://github.com/discourse/discourse/blob/b246f1a6945f510499aafc331ccfe24a458bc17e/lib/auth/default_current_user_provider.rb#L156-L169>

I think what you are after is `SiteSetting.log_out_strict`

---

_[View the full topic](https://meta.discourse.org/t/what-exactly-goes-on-when-delete-session-username-is-invoked/53993)._
