Solved

PHP error with logout.php since changing from 5.2 to 5.5

Posted on 2014-09-18
2
276 Views
Last Modified: 2014-09-18
Hi, I have a hosted members area where my users can store all their account information.
Everything worked ok on PHP 5.2
The hosting company have asked me to change the platform from PHP 5.2 to 5.5
Everything seems to still work as in I can create a new member account and add information to it , its just the logout function which gives me an error
Fatal error: Call to undefined function session_unregister() in /homepages/3/d288589685/htdocs/members/admin/logout.php on line 9
if I log out from a different area, it gives a similar error relating to line 8

regards
Rick
php.txt
0
Comment
Question by:Rick_Penney
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40330764
Replace session_unregister() with unset

...as it now no longer exists
0
 

Author Closing Comment

by:Rick_Penney
ID: 40330832
Excellent, that works perfectly
thank you for the quick response, very grateful
regards
Rick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now