Jump to content

Mostrar menu depois de login feito


Recommended Posts


Apenas tens de utilizar uma variável de sessão para fazer esse manuseamento:

if($_SESSION['login'] == 0) //Sem login
  (menu sem login - ou fazes include ou escreves aqui o menu)
}else if($_SESSION['login'] == 1) //Client
  (menu depois de login para cliente)
}else if($_SESSION['login'] == 2) //Funcionario
  (menu depois de login para funcionario)

Ou com um switch que é menos confuso

Espero ter ajudado

Edited by tiagotavares

Tiago Tavares

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.