Title: Session not working
Last modified: July 20, 2021

---

# Session not working

 *  Resolved [varindien](https://wordpress.org/support/users/varindien/)
 * (@varindien)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/session-not-working/)
 * Hello,
    $_SESSION seems to not work properly ? if we edit $_SESSION content, 
   we just loose content once we left the page.
 * Did i miss something? or plugin just dont work anymore?
 * PHP 7.2.X
    WP 5.7
 * thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [varindien](https://wordpress.org/support/users/varindien/)
 * (@varindien)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/session-not-working/#post-14680228)
 * i answer myself : if it is an ajax call you need to add to the file :
    if( !session_id()){
   session_start();}

Viewing 1 replies (of 1 total)

The topic ‘Session not working’ 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
 * 1 participant
 * Last reply from: [varindien](https://wordpress.org/support/users/varindien/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/session-not-working/#post-14680228)
 * Status: resolved