Changeset 1362596
- Timestamp:
- 03/02/2016 01:22:10 PM (10 years ago)
- File:
-
- 1 edited
-
webcourier/trunk/webcourier.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
webcourier/trunk/webcourier.php
r1362585 r1362596 1 1 <?php 2 session_start(); 2 3 3 /* 4 4 Plugin Name: Webcourier Plugin … … 17 17 exit; // Exit if accessed directly 18 18 } 19 20 add_action('init', 'myStartSession', 1); 21 add_action('wp_logout', 'myEndSession'); 22 add_action('wp_login', 'myEndSession'); 23 24 function myStartSession() { 25 if(!session_id()) { 26 session_start(); 27 } 28 } 29 30 function myEndSession() { 31 session_destroy (); 32 } 33 19 34 //path to autoloader 20 35 define('WEBCOURIER_PLUGIN_DIR', dirname(__FILE__) . '/');
Note: See TracChangeset
for help on using the changeset viewer.