Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47320, comment 4


Ignore:
Timestamp:
05/31/2019 12:55:51 PM (5 years ago)
Author:
netweblogic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47320, comment 4

    initial v1  
    66<?php
    77add_action('init', function(){
    8     session_start();
     8    session_start(); //this loads variables to $_SESSION for reading
    99    if( empty($your_plugin_needs_session_saving) ){
    1010        session_write_close(); //other plugins can restart a session again via session_start()