?
Solved

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

Posted on 2014-09-18
2
Medium Priority
?
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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.
Suggested Courses

770 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