Solved

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

Posted on 2014-09-18
2
275 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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…
The viewer will learn how to dynamically set the form action using jQuery.

757 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

23 Experts available now in Live!

Get 1:1 Help Now