Questions tagged as 'session'

1
answer

Login by session roles

Good afternoon, nights, I'm doing a login for session roles and with two it works perfectly, so like this: user.php <?php session_start(); if(isset($_SESSION["usuario"])){ if($_SESSION["privilegio"] == 0){ }else{ header(...
asked by 04.05.2017 / 21:20
1
answer

How do I store an object in Session in Asp.net core Web api?

// public class OrderVM { public User numUsu { get; set; } //La lista es de ProductOrder public List<ProductOrder> Products {get; set;} } var orderView = new OrderVM(); or...
asked by 22.04.2017 / 00:20
1
answer

Validate form with PHP

I already have my form and my validations done, what I really want is that when you enter information in the (input) text boxes of the form and when you leave a text box ( input) empty or incorrectly validated, do not delete the fields that...
asked by 27.11.2016 / 03:04
0
answers

Do not log in a web upload to a hositng

I uploaded my website to a hosting, in fact I had already tested it successfully. The problem is that the login is reloaded and does not enter the cover: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title&...
asked by 16.12.2018 / 12:28
0
answers

Problem with redirecting the login when the Laravel 5.5 session expires

I have a Middleware in my laravel project: <?php namespace Illuminate\Auth\Middleware; use Closure; use Illuminate\Auth\AuthenticationException; use Illuminate\Contracts\Auth\Factory as Auth; class Authenticate { /** * The authe...
asked by 21.12.2018 / 15:03
1
answer

Get session username in any file?

I'm doing a small application where the user registers some data and I want the user to be registered in the registry but I can not get it. 1.- The user starts session (login.php) and I have a hidden form that sends the username to another PO...
asked by 13.07.2017 / 19:10
1
answer

Help with handling a closing of a PHP session

Guys, I have the following case: To start session in PHP I do the following: <?php session_cache_limiter('private'); session_start(); and to close the session I do the following: <?php if (isset($_GET['logout'])) { session_dest...
asked by 20.11.2018 / 16:30
0
answers

Problem with the session start when uploading the page to a hosting

I would like to know why when I upload the page to a free hosting, it always throws this error at me and how to solve it     
asked by 06.11.2018 / 04:06
0
answers

Enter names in form to start SESSION_START ();

I want to save names entered from a form with SESSION_START (); in php. But I can only show the last name entered, what should I do? An array? File index.php: <html lang="en" dir="ltr"> <head> <meta charset="ut...
asked by 05.11.2018 / 20:53
2
answers

Name of Variable session according to query variable

I want to create variables $_SESSION according to the name of the data that brings me from a query while ($row = oci_fetch_assoc($validacion)){ borrado($row["ID_CENTRAL"]); $_SESSION['echo $row["ID_CENTRAL"];'] = $row["ID_CENTRA...
asked by 26.10.2018 / 17:06