Title: Php session does not work when site it cached. Set cookie instead?
Last modified: August 30, 2016

---

# Php session does not work when site it cached. Set cookie instead?

 *  [mrbrightside84](https://wordpress.org/support/users/mrbrightside84/)
 * (@mrbrightside84)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-session-does-not-work-when-site-it-cached-set-cookie-instead/)
 * I have been trying to get the iframe popup to only show once to a visitor per
   session, but when my site is cached, the iframe popup keeps showing when the 
   page is reloaded.
 * Is there anyway to use a cookie instead of a php session? Or get this to work
   when the site is cached?
 * Please let me know. Thanks!
 * [https://wordpress.org/plugins/iframe-popup/](https://wordpress.org/plugins/iframe-popup/)

The topic ‘Php session does not work when site it cached. Set cookie instead?’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe-popup_fcfcfc.svg)
 * [iframe popup](https://wordpress.org/plugins/iframe-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/iframe-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/iframe-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe-popup/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mrbrightside84](https://wordpress.org/support/users/mrbrightside84/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/php-session-does-not-work-when-site-it-cached-set-cookie-instead/)
 * Status: not resolved