Location: PHPKode > projects > SolBT > SolBT-1.3.0.11/sessao.php
<?php
  @session_start();
  
  if ($_SERVER["PHP_SELF"] != "/sol/login.php")
  {
    if ($_SESSION["logado"] != "sim")
    {
      header('Location:/sol/login.php');
    }
  }
  else
  {
    if (($_GET["acao"] == "sair") || ($_GET["acao"] == "logoff"))
    {
      $_SESSION["logado"] = "nao";
      if ($_GET["acao"] == "sair")
      {
        header('Location:/');
      }
    }
  }
  
  include_once("dados.php");
?>
Return current item: SolBT