Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis documentation
for users and developers.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Administration
»
logout error
« previous
next »
Print
Pages: [
1
]
Author
Topic: logout error (Read 7580 times)
azmi2
Jr. Member
Posts: 74
logout error
«
on:
December 31, 2012, 09:31:26 »
i am getting following error when i click logout button in admin panel
...
Fatal error: Call to undefined function session_unregister() in /home/mosadgov/public_html/portal/administrator/logout.php on line 39
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
please help me to find out problems
thanks
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: logout error
«
Reply #1 on:
December 31, 2012, 09:58:33 »
session_unregister
has become deprecated in
php 5.3
and removed in
php 5.4
Edit file
administrator/logout.php
and go to lines 39 to 44.
Change them from:
session_unregister( "session_id" );
session_unregister( "session_user_id" );
...
to:
unset($_SESSION['session_id']);
unset($_SESSION['session_user_id']);
...
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
azmi2
Jr. Member
Posts: 74
Re: logout error
«
Reply #2 on:
December 31, 2012, 20:44:10 »
thanks for quick reply.i make changes from line 39 to 44 as you suggested,but it not solved and i am getting error in line no 46 as follows
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Fatal error: Call to undefined function session_is_registered() in /home/mosadgov/public_html/portal/administrator/logout.php on line 46
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: logout error
«
Reply #3 on:
January 01, 2013, 12:42:59 »
Delete these lines and write the
session_destroy();
only one time.
if (isset($_SESSION['session_id'])) { unset($_SESSION['session_id']); }
if (isset($_SESSION['session_user_id'])) { unset($_SESSION['session_user_id']); }
if (isset($_SESSION['session_username'])) { unset($_SESSION['session_username']); }
if (isset($_SESSION['session_usertype'])) { unset($_SESSION['session_usertype']); }
if (isset($_SESSION['session_logintime'])) { unset($_SESSION['session_logintime']); }
if (isset($_SESSION['session_allowed'])) { unset($_SESSION['session_allowed']); }
session_destroy();
mosRedirect( $mosConfig_live_site );
Edit by webgift
: Translated from Greek to English!
«
Last Edit: January 01, 2013, 14:33:08 by webgift
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
azmi2
Jr. Member
Posts: 74
Re: logout error (SOLVED)
«
Reply #4 on:
January 02, 2013, 11:09:39 »
GREATE mR. datahell
SOLVED PROBLEM.MANY MANY THANKS FOR QUICK AND MEANINGFUL HELP.
THANKS
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Administration
»
logout error