Title: Disable session variable
Last modified: October 16, 2020

---

# Disable session variable

 *  [joaosoares121](https://wordpress.org/support/users/joaosoares121/)
 * (@joaosoares121)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-session-variable/)
 * Hi.
    Is it possible to disable the session variable that WooCommerce defines 
   for each new visitor? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-session-variable/#post-13543990)
 * Hi there,
 * Not really – the session variable is used in cart persistence from one page to
   the next. With that said, what’s the use case here? Why are you looking to disable
   that?
 *  Thread Starter [joaosoares121](https://wordpress.org/support/users/joaosoares121/)
 * (@joaosoares121)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-session-variable/#post-13544008)
 * In the company where I have the hosting, they have an optimization plugin and
   gave me the following information.
 * “Our speed optimizer plugin doesn’t work because woocommerce sets session variable
   for each new visitor.
    Our speed optimizer plugin doesn’t do the optimizations
   in such cases to avoid 504 errors. Kindly note that fast cgi cache doesn’t work
   because of that cookie. Is there a chance you can disable that functionality?”

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disable session variable’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [joaosoares121](https://wordpress.org/support/users/joaosoares121/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/disable-session-variable/#post-13544008)
 * Status: not resolved