forked from ericmann/wp-session-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-session-manager.php
35 lines (30 loc) · 925 Bytes
/
wp-session-manager.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Plugin Name: WP Session Manager
* Plugin URI: http://jumping-duck.com/wordpress/plugins
* Description: Prototype session management for WordPress.
* Version: 1.2.0
* Author: Eric Mann
* Author URI: http://eamann.com
* License: GPLv2+
*/
// let users change the session cookie name
if( ! defined( 'WP_SESSION_COOKIE' ) ) {
define( 'WP_SESSION_COOKIE', '_wp_session' );
}
if ( ! class_exists( 'Recursive_ArrayAccess' ) ) {
include 'includes/class-recursive-arrayaccess.php';
}
// Include utilities class
if ( ! class_exists( 'WP_Session_Utils' ) ) {
include 'includes/class-wp-session-utils.php';
}
// Include WP_CLI routines early
if ( defined( 'WP_CLI' ) && WP_CLI ) {
include 'includes/wp-cli.php';
}
// Only include the functionality if it's not pre-defined.
if ( ! class_exists( 'WP_Session' ) ) {
include 'includes/class-wp-session.php';
include 'includes/wp-session.php';
}