Title: Undefined variable: _SESSION
Last modified: August 30, 2016

---

# Undefined variable: _SESSION

 *  [kilbot](https://wordpress.org/support/users/kilbot/)
 * (@kilbot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-_session/)
 * When using the WC REST API, Striper gives the following error:
 * `Notice: Undefined variable: _SESSION in /wp-content/plugins/striper/stripe_gateway.
   php on line 215`
 * You should add two checks to this line:
    1. Check for the existence of superglobal $_SESSION (not present for API orders)
    2. Check that ‘order_awaiting_payment’ isset (may or may not be the case)
 * [https://wordpress.org/plugins/striper/](https://wordpress.org/plugins/striper/)

The topic ‘Undefined variable: _SESSION’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/striper.svg)
 * [Striper - Stripe Integration for WooCommerce](https://wordpress.org/plugins/striper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/striper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/striper/)
 * [Active Topics](https://wordpress.org/support/plugin/striper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/striper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/striper/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kilbot](https://wordpress.org/support/users/kilbot/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-_session/)
 * Status: not resolved