the-botman Posted September 10, 2012 Share Posted September 10, 2012 i need some help with this small code, it used to work but it seems php has done away with some old stuff and i now get this error msg This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. what would be the right way to put this now if ($Logout == "True") { session_start(); if (session_is_registered('Usr_Id')) { $_SESSION['Usr_Id'] = ""; } } Quote Link to comment https://forums.phpfreaks.com/topic/268218-php-help/ Share on other sites More sharing options...
spiderwell Posted September 10, 2012 Share Posted September 10, 2012 first thing i would do is look up the function on php.net and see what that suggested as a replacement/alternative Quote Link to comment https://forums.phpfreaks.com/topic/268218-php-help/#findComment-1376693 Share on other sites More sharing options...
the-botman Posted September 10, 2012 Author Share Posted September 10, 2012 thanks alot i have sorted it out here was my sulotion if anyone else needs it if ($Logout == "True") { session_start(); if( isset($_SESSION['Usr_Id']) ) { $_SESSION['Usr_Id'] = ""; } } thanks again Quote Link to comment https://forums.phpfreaks.com/topic/268218-php-help/#findComment-1376700 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.