Questions tagged as 'session'

1
answer

PHP session is not configured

I am using session_start to create a session for the user when it is authenticated on the server, however the session is not being maintained in the page exchange, I am using AJAX requests to authenticate, then:    login.js + ajax - &g...
asked by 11.07.2014 / 02:57
3
answers

Session variable does not exist

A few days ago I reported a problem that was happening in the code I was using, but since I needed a lot of things, I decided to use another one. In the new code, there are the variables to save the session, as below: if (mysql_num_rows($query...
asked by 19.09.2018 / 02:10
1
answer

Session vs. Database Query [closed]

Well, I'm in doubt here. Inside my control panel, I will need to get the user id, email, password (just to change password) name, name, etc ... Ideally it would save this all in one session at the time of login or always I need this, do I ref...
asked by 18.12.2017 / 16:24
1
answer

Session passing value that was not expected [duplicate]

Hello, I'm a programmer and I'm doing a system for the school that I studied, but I encountered a big problem.               School System      <h1 id="titulo">Sistema Escolar</h1> <div> <ul id="m...
asked by 25.09.2017 / 01:26
2
answers

Comparison between strpos () - PHP variables

I need help between levels of access, I'll post part of the code. It is a connection in Active Directory (AD), authenticating the user and searching to which group it belongs to. This is the login.php code <?php include("auth.p...
asked by 03.07.2017 / 22:58
1
answer

Php - Get variable by _GET or _POST? How to make name appear instead of cpf

Well, I'm doing a project where the student enters by cpf and by date of birth. However, in the user <div=class"user"> div in home.php (where the salutation and username must be) appears cpf instead of the name. What method do I u...
asked by 15.05.2017 / 05:00
1
answer

How do I delete an item from the cart? session

Hello, I'm doing a shopping cart and I'm not able to delete an item from the session. I've tried it in several ways, but I do not understand why it does not work. Could someone give me a light? (I'm new to php) CODE: <!DOCTYPE html> &...
asked by 13.04.2017 / 21:49
3
answers

Block access to PHP pages with SESSION

I'm practicing PHP. I'm setting up an admin panel with login screen. I have my index.php page which is the login (EMAIL AND PASSWORD). After logging in, go to admin.php page The detail is that if the user enters www.seusite.com.br/ad...
asked by 09.03.2017 / 18:46
1
answer

Error displaying alerts with $ _SESSION [""] [duplicate]

I'm running a test site to train a bit of php , I'm using $_SESSION[""] to show alerts, however, when I go up to a servidor that is not local, alerts stop working. Project LINK - > link * Bank file to import into...
asked by 06.12.2016 / 13:12
1
answer

When the password or login is wrong the session is not closed

Good afternoon, I did a schedule to check if the login data is wrong or not, when I put the wrong data it gives me a alert saying that the login or password is incorrect but when I click ok It looks like another alert saying that...
asked by 18.01.2017 / 20:30