<?php 
/*
 @todo amadurecer classe de tratativa de sessaa0
 */
class Session {

	var $properts;

	final public function __construct(){
		$this->load($_SESSION); 
	}

	
	public static function get($var) {
	    if(isset($_SESSION[$var]))
		    return $_SESSION[$var];

	    return null;
	}

	
	public static function set($key,$value) { 
		$_SESSION[$key] = $value;
	}

	
	function load($array) {
		if(is_array($array)) {
			foreach($array as $key=>$value) {
				//$this->properts[$key] = $value;
			}
		}
	}

	
	function unload($properts = '') {
		//destroi session
	}
 
	public static function get_all() {
		return $_SESSION;
	}

}