Home > Article > Backend Development > php5.3 does not support session_register(). What should I do if this function is enabled?
I found another method, just put: session_register( “abc” ); Change to $_SESSION['abc'] = null; That’s it Changes in session in php5.3 (bbs.it-home.org Script School) When running the code in the book in php5.3, you will get the following prompt: Function session_is_registered() is deprecated in Function session_register() is deprecated in That is to say, these two functions are deprecated and deprecated. The following is the code from the official PHP manual. The comments section has stated that session_register() is deprecated.
Tips: If $_SESSION is used, use the isset() function to check. If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister(). |