/**
 * Seta um session atraves do PHP, fazendo requisicao SINCRONA
 * @param strSession Nome do session
 * @param mixedValor Valor desse session
 * @return
 */
function setPhpSession(strSession, mixedValor){
	
	jQuery.ajax({
		data: {
			 session	: strSession
			,value	: mixedValor
			,fnTarget: 'setPhpSession'
		}
		,async	: false
		,url	: jQuery.root_path+'/ajax/Util.ajax.php'
		,type	: 'post'
	});
	
}

/**
 * Pega um session setado com o php (tem diferenca?)
 * @param strSession O nome do cookir
 */
function getPhpSession(strSession){
	
	var value = "";
	
	jQuery.ajax({
		data: {
			 session	: strSession
			,fnTarget: 'getPhpSession'
		}
		,async	: false
		,url	: jQuery.root_path+'/ajax/Util.ajax.php'
		,type	: 'post'
		,success	: function(data, strStatus){
			value = data;
		}
	});
	
	return value;
	
}

