Relative Content

Tag Archive for phpsession

Problem using $_SESSION across multiple php files

I have 2 php files. The first, index.php, is where I create the SESSION. It then calls the next file, login.php. I test for the existence of the SESSION in login.php and it says there is no SESSION. I am doing this through XAMPP on my local system and I can see that the SESSION file was created, but login.php can’t detect it. The following code from the two files are both at the top of the file, before any other PHP or HTML code. What am I doing wrong?

PHP autorisation with session issue

I made a login form, that allows you to go to admin dashboard of my web-page. Issue that web-page always write me that i wrote username or password incorrectly.