Title: session_destroy();
Last modified: August 21, 2016

---

# session_destroy();

 *  Resolved [FaldoSeriesNL](https://wordpress.org/support/users/faldoseriesnl/)
 * (@faldoseriesnl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/session_destroy/)
 * Hi,
 * Thanks for this great plugin. I was using regular Sessions in my code, but for
   some reason these do not work in WP 3.6
 * I run a website about a golf tournament where people can register. After registration
   they can edit their details. This is where I use your plugin. They have an option
   to log out, that’s where I use `session_destroy();`
 * What code do I use to “destroy” a wp_session?
 * Thanks!
 * [http://wordpress.org/plugins/wp-session-manager/](http://wordpress.org/plugins/wp-session-manager/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Eric Mann](https://wordpress.org/support/users/ericmann/)
 * (@ericmann)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/session_destroy/#post-4179559)
 * There is no equivalent of `session_destroy()` for `WP_Session`, but you can use`
   wp_session_unset()` to unset any session data. This will achieve roughly the 
   same effect of killing the session.

Viewing 1 replies (of 1 total)

The topic ‘session_destroy();’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-session-manager_272e38.svg)
 * [WP Session Manager](https://wordpress.org/plugins/wp-session-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-session-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-session-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-session-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-session-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-session-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eric Mann](https://wordpress.org/support/users/ericmann/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/session_destroy/#post-4179559)
 * Status: resolved