Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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