Questions tagged as 'session'

1
answer

I can not print the value of a $ _Session with an echo

I have a login authentication system that is this: <?php if(isset($_POST['txtpass'])) { session_start(); //variable de conexion: recibe dirección del host , usuario, contraseña y el nombre base de datos $mysqli = new mysqli("lo...
asked by 22.03.2018 / 11:24
1
answer

Differentiate PHP sessions between systems

I have encountered the following problem. 2 systems mounted with PHP and access management through the creation of sessions at the time of login. At the time of entering one of the systems, I automatically also enabled the entry to the oth...
asked by 14.05.2018 / 18:45
3
answers

get the user name to show it once the session starts with php mysql html

I have a question with this code is that it does not show me the name of the user, in itself what I ask is how you can show the name of the user who started the session, and who appears in the corner of the website thanks to beforehand note:...
asked by 08.12.2018 / 21:17
1
answer

problem when passing $ _SESSION

Login.html </div> <div class="col"> <form action="../php/comprobar_inicio_sesion.php" method="POST" name="form_login"> <div class="form-group"> <label for="exampleInputEmail1">Email</label> <...
asked by 27.07.2018 / 15:32
3
answers

Error traversing a multidimensional array within a php session

how are you? I have a question, I made a session, to contain an array and then use it whenever I want in several parts of my page. the question, is that wanting to bring the data of each array within this session, throws me errors ... with the v...
asked by 23.09.2018 / 18:45
1
answer

'$ _SESSION' in wpwngine

Good afternoon everyone, I have a project in Wordpress where variables session of PHP are used, the migration is being made to the server wpengine , but said server does not allow sessions PHP , I tried to use setcookie()...
asked by 03.05.2018 / 19:55
1
answer

Increase the session time in shared hosting

As they are friends, it happened to someone else that the lifetime of the variable $ _SESSION does not last long enough and when you reload the page again asks the user to log in, someone knows how to increase the time of life. I tried my PHP co...
asked by 09.09.2017 / 19:09
1
answer

Warning: session_start (): Can not send session cookie - headers already sent

Error when trying to enter I explain in localhost it works fine but when uploading it to some server it marks this error Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /storage/ssd3/893/822893...
asked by 05.09.2017 / 19:20
1
answer

How to obtain specific data from an array that is stored in a Session in Laravel 5.1?

Greetings guys, the topic is simple I need to show in a view the data of an array that is in session, which contains several arrays. What I am doing is the following: This is how I update the array: public function inscribir(Evento $even...
asked by 08.07.2017 / 14:38
1
answer

Laravel Session Return: Null

I need to pass variable se session to get variables in other views or controllers at the end I get a NULL This is what I am doing: public function login(Request $request){ $client = new Client(); $this->validate($request...
asked by 04.08.2017 / 18:37