toggle between login and logout buttons php

Solutions on MaxInterview for toggle between login and logout buttons php by the best coders in the world

showing results for - "toggle between login and logout buttons php"
Valentín
11 Jan 2021
1<?php if(isset($_SESSION['id'])){ ?>
2  <a class="link" href="logout.php" style="text-decoration:none">logout</a>
3<?php }else{ ?>
4  <a class="link" href="login.php" style="text-decoration:none">login</a>
5<?php } ?>
6