Location: PHPKode > projects > MembersGear > membersgear/includes/messagegetset.php
<?php

    require_once PHYSICAL_DIR. "/config/config.php"; 
    
    class message_class
    {
    
        function SetMessage($pMessage='')
        {
            
            $_SESSION[SESSION_PREFIX.'message'] = $pMessage;
            
            return $_SESSION[SESSION_PREFIX.'message'];
            
        }    
        
        function GetMessage()
        {
            $result='';
            
            if(isset($_SESSION[SESSION_PREFIX.'message']))
            {
                $result = $_SESSION[SESSION_PREFIX.'message'];
                unset($_SESSION[SESSION_PREFIX.'message']);
            }                
            
            
            return $result;
            
        }
            
        function IsMessageExists()
        {
            if(isset($_SESSION[SESSION_PREFIX.'message']))  
                return true;
            else
                return false;    
            
        } 
        
    }

    /*
    $message = new message_class();
    
    $message->SetMessage('user is successfully updated.');
    
    echo $message->GetMessage();
    */
    
?>
Return current item: MembersGear