Title: Session Interrupted by Another Plugin
Last modified: August 21, 2016

---

# Session Interrupted by Another Plugin

 *  [edrdesign](https://wordpress.org/support/users/edrdesign/)
 * (@edrdesign)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/session-interrupted-by-another-plugin/)
 * I hope this is in the right section, but I am in the process of ironing out the
   kinks of a custom plugin I designed that uses PHP’s session function and having
   some issues. The first time it was because of another plugin using the session
   function and I had to disable that plugin in order to get my plugin to work. 
   Is there a way to isolate my session variables to my plugin and ensure that if
   another other plugin clears out all session variables in their code that mine
   is unaffected?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/session-interrupted-by-another-plugin/#post-4253133)
 * Not that I know of. You probably need to maintain session data with some other
   mechanism: cookies, transients, URL parameters, POST data, usermeta, etc.; all
   could work under certain conditions. I realize doing so could invalidate your
   entire concept, I just don’t know how one can protect session data from another
   process that has equal rights as your own. As such, none of the other mechanisms
   are inviolate either, but other plugins are less likely to destroy the entire
   structure.

Viewing 1 replies (of 1 total)

The topic ‘Session Interrupted by Another Plugin’ is closed to new replies.

## Tags

 * [debugging](https://wordpress.org/support/topic-tag/debugging/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [session](https://wordpress.org/support/topic-tag/session/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/session-interrupted-by-another-plugin/#post-4253133)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
