Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

805 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