Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
session_unregister! deprecated / Front End Logout /PHP5.4 https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=3481 |
Page 1 of 1 |
Author: | ASCDE [ 20. Jan 2013, 03:23 ] |
Post subject: | session_unregister! deprecated / Front End Logout /PHP5.4 |
Michael, am a bit supprised about PHP Fatal error: Call to undefined function session_unregister() in .......\i_frames\i_login.php on line 48 Why still using an very common deprecated function, btw, since more than 8 years. http://php.net/manual/en/function.sessi ... gister.php Read it. I'm afraid there are more leaks in TWG, than only this one. And, don't come back and say PHP 5.4 is not common used. Alex |
Author: | TinyWebGallery [ 20. Jan 2013, 18:23 ] |
Post subject: | Re: session_unregister! deprecated / Front End Logout /PHP5. |
This part was simply not modified a long time. But I'm currently working on a version for 5.4. And yes. 5.4 start to get common for many hosters. TWG 1.9 will be 100% compatible with php 5.4.x. I currently release TFU/JFU 3.0 and TWG 1.9 is then next . Best, Michael |
Author: | ASCDE [ 21. Jan 2013, 17:45 ] |
Post subject: | Re: session_unregister! deprecated / Front End Logout /PHP5. |
wish would have more time to review twg code. Still fight with the Google Map link topic |
Author: | jmarti20 [ 19. Feb 2013, 15:37 ] |
Post subject: | Re: session_unregister! deprecated / Front End Logout /PHP5. |
I wrote my own workaround : Make the following changes in <<<twg-dir>>>/i_frames/i_login.php Change Line 48-54 session_unregister("mywebgallerie_login"); session_unregister("twg_permissions"); session_unregister("s_user"); session_unregister("s_pass"); session_unregister("s_home_dir"); // set in fun_users.php session_unregister("admin_lang"); session_unregister("upload_settings"); to unset($_SESSION['mywebgallerie_login']); unset($_SESSION['twg_permissions']); unset($_SESSION['s_user']); unset($_SESSION['s_pass']); unset($_SESSION['s_home_dir']); // set in fun_users.php unset($_SESSION['admin_lang']); unset($_SESSION['upload_settings']); and the logout will work again. Regards Joerg |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |