Interfata web

Categoria unde puteti cere pentru tutoriale.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
lexzor
Membru, skill 0
Membru, skill 0
Posts: 14
Joined: 15 Jan 2020, 23:45
Detinator Steam: Da
CS Status: www.districth.ro/forum
SteamID: lexzor
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 1 time

13 May 2020, 23:28

Am revenit cu o noua problema, de data asta la logout. Nu imi opreste sesiunea. Vreo idee de la ce ar putea fi ?

Code: Select all

            <?php
        	if(!isset($_SESSION['id'])){
			echo '<li><a href="includes/logoutsystem.php"><i class="fas fa-sign-out-alt"></i>Log Out</a></li>';
			} else {
			echo '
            <li><a href="login.php"><i class="fas fa-sign-in-alt"></i>Log In</a></li>
            <li><a href="signup.php"><i class="fas fa-user-plus"></i>Sign Up</a></li>';
			}
            ?>
iar pagina cu logout:

Code: Select all

<?php
	session_start();
	session_destroy();
	unset($_SESSION['username']);
	header("Location: ../index.php");
?>
Zonek
User avatar
Syko
Membru, skill 0
Membru, skill 0
Posts: 32
Joined: 14 Apr 2019, 20:45
Detinator Steam: Da
CS Status: Good
Detinator server CS: jb.b-zone.ro
SteamID: syko_o
Fond eXtream: 0
Location: Bucuresti
Has thanked: 3 times
Contact:

16 May 2020, 09:32

Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests