Questions tagged as 'session'

2
answers

$ _SESSION recover data

Good, I have an archiv that retrieves the IDs and makes a login for roles so that: VALIDAR.PHP <?php //Fichero que usara para mandar los datos recibidos más abajo para pasarlos por el controlador. include "../controlador/usuariosControla...
asked by 22.05.2017 / 13:08
1
answer

Use of array in session variable

Good afternoon, classmates. I would like to save in a session variable the value of two fields that I pass through $ _post from a form and that this session variable will store the data of those fields until I destroy it with the intention of...
asked by 13.12.2018 / 17:09
1
answer

Problems PHP session - session_start does not work?

If I execute this code, it always returns the same result. What am I doing wrong? session_start(); if (!isset($_SESSION['count'])) { echo "no existe, inicializamos"; $_SESSION['count'] = 0; } else { echo "existe, sumamos"; $_SE...
asked by 14.11.2018 / 13:31
0
answers

Multi-language using laravel and vue

I am developing a page which will have multi-language Spanish and English , for front-end I am using vue-i18n . In front-end I send the active language every time I need some data of back-end The problem When...
asked by 26.07.2018 / 00:49
1
answer

Control the sessions in Laravel

I have detected several flaws in my laravel sessions and I do not sincerely like to solve them. When I log in and go to the Home. If I click on the back button of any browser, I go back to the Login screen. If I enter another incorrect passwo...
asked by 19.12.2017 / 12:48
0
answers

How can I insert and extract variables with "session" with java :?

this is the scenario: On the one hand I have a .java where I want to put a variable in session doing this: String [] matriz = new String[5]; matriz[0] = "Hola"; matriz[1] = "que"; matriz[2] = "tal"; matriz[3] = "estas"; request.getSess...
asked by 27.09.2017 / 11:44
1
answer

Error loading session (db user) security symfony

I come to explain my problem to you because I do not know what to do anymore ... I've been reading Symfony's official documentation for almost two weeks as others that are not official to try to make a user session system with Symfony . I d...
asked by 11.09.2016 / 12:02
2
answers

Datediff gives me a Boolean value when comparing two dates

I have a login.php in which a user is valid, and if it is the correct one, I open the session. The code is as follows: if (password_verify($pass,$resultado)) { session_start(); $_SESSION['nic...
asked by 09.07.2017 / 10:03
1
answer

Avoid viewing a page without going through index.php

I have a index.php that is a form of login and that being correct the user and the password directs to another page. The problem is that if I go to the other page I can see it without having gone through the login and I want to see this...
asked by 24.01.2017 / 19:16
1
answer

Problem with variable $ _SESSION

I have this function, which does not recognize me $_SESSION['id_usuario'] variable%, showing me the indefinite and the question is if there is, as I am using it in other functions. public function mostrarImagenController($datos){ list(...
asked by 23.08.2017 / 19:46