I’m making an admin site and I’m having problems with the session_~ codes
I understand that they have been taken out since PHP 5.4, but I don’t know how to create the same code in the new language…
is this correct? I want it to send to success.php if the login was successful, if not i want it to head back to the admin index.php
[php]<?php
session_start();
if($_SESSION[“inloggning”]!=true){
header(“location:index.php”);
}
include("…/connect.php");
?>
[/php]
Also, how would I destroy it?
logout.php
[php]
In the admin-site .phps I’ve added codes so that people can’t access it if they haven’t logged in with the admin account, but I dont know if they are correctly written anymore since the language has been developed.
for example, category.php
[php]
