i have created a custom class to manage all types of session
i have created few static methods but for unset its giving me an error
public static function unsetSession($para) {
return unset($_SESSION[$para]);
}
Can nay one give an idea why its throwing error
I read php document
Description
void session_unset ( void )
The session_unset() function frees all session variables currently registered.
Return Values
No value is returned.
is it unset is not returning ?
Thanks
Getting following Error
Parse error: syntax error, unexpected 'unset' (T_UNSET)