Title: PHP 7.2 500 error using session_unregister()
Last modified: November 11, 2018

---

# PHP 7.2 500 error using session_unregister()

 *  Resolved [htjoe38](https://wordpress.org/support/users/htjoe38/)
 * (@htjoe38)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-7-2-500-error-using-session_unregister/)
 * I’m using PHP 7.2 and when trying to register a new user I get a 500 PHP error.
 * >  PHP Fatal error: Uncaught Error: Call to undefined function session_unregister()
   > in /-snip-/wp-content/plugins/clean-login/clean-login.php:413
 * On line 413 there is
 * > session_unregister (‘cleanlogin-captcha’);
 * According to the PHP manual for session_unregister()
 * > Warning This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of
   > PHP 5.4.0.
 * Searching the web it was suggested that
 * > unset($_SESSION[‘cleanlogin-captcha’]);
 * could be used instead. When I tried this all seemed to work OK but I might not
   have it correctly.
 * Hope that is helpful.
    Joe
    -  This topic was modified 7 years, 7 months ago by [htjoe38](https://wordpress.org/support/users/htjoe38/).
    -  This topic was modified 7 years, 7 months ago by [htjoe38](https://wordpress.org/support/users/htjoe38/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Alberto Hornero](https://wordpress.org/support/users/hornero/)
 * (@hornero)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-500-error-using-session_unregister/#post-10895181)
 * I think you are right. Sorry for the delay in my answer.
 * I’d update the plugin accordingly. Thank you very much for reporting this issue,
   and a possible solution.
 * Alberto.
 *  Plugin Author [Alberto Hornero](https://wordpress.org/support/users/hornero/)
 * (@hornero)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-500-error-using-session_unregister/#post-10895230)
 * 1.9.6 version updated. Thanks Joe 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 7.2 500 error using session_unregister()’ is closed to new replies.

 * ![](https://ps.w.org/clean-login/assets/icon-256x256.png?rev=1602118)
 * [Clean Login](https://wordpress.org/plugins/clean-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/clean-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/clean-login/)
 * [Active Topics](https://wordpress.org/support/plugin/clean-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clean-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clean-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Alberto Hornero](https://wordpress.org/support/users/hornero/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-500-error-using-session_unregister/#post-10895230)
 * Status: resolved