Skip to content
Advertisement

Session-Handling doesn’t set properly on PHP

I’m working on php-Website for my School-Project which I have to get finished soon. Now I’m stuck with my Session-Handling. User signup & login works just fine. But this variable isset($_SESSION[“useruid”]) is always false and doesn’t let me access the homepage, even the alert in the header says, that I am successfully logged in.

Here are the two parts, which I think the error might be:

functions.inc.php

JavaScript

home.php

JavaScript

For the whole small project-code visit my Gitlab: https://gitlab.iet-gibb.ch/agn122703/secapp

Advertisement

Answer

you may put it on the top of your page. you never used or include functions.inc.php in your header.php file use:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement