Title: php SESSION not working with version 2.1
Last modified: August 18, 2016

---

# php SESSION not working with version 2.1

 *  [ldhertert](https://wordpress.org/support/users/ldhertert/)
 * (@ldhertert)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/php-session-not-working-with-version-21/)
 * I wrote a plugin called anotherFlickr that uses ajax to load pictures from a 
   flickr account. On the callback page, I use session variables to store information
   between callbacks. I also put an include to wp-config.php so that I can get wordpress
   settings. This worked fine up until the recent update to 2.1. Now it seems that
   I can’t use php session variables any longer. Here’s a quick sample I wrote to
   demonstrate the problem:
 * `
    <? session_start(); require_once( "../../../wp-config.php"); $counter++; print"
   You have visited this page $counter times during this session"; session_register("
   counter"); ?>

Viewing 1 replies (of 1 total)

 *  Thread Starter [ldhertert](https://wordpress.org/support/users/ldhertert/)
 * (@ldhertert)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/php-session-not-working-with-version-21/#post-515292)
 * Is there a better place I can ask this question? I’d really like to find out 
   an answer.

Viewing 1 replies (of 1 total)

The topic ‘php SESSION not working with version 2.1’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [ldhertert](https://wordpress.org/support/users/ldhertert/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/php-session-not-working-with-version-21/#post-515292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
