Most voted "session" questions
A session refers to all requests a single client makes to a server. The session is user-specific and for each user a new session is created to accompany that user’s entire request.
Learn more…416 questions
Sort by count of
- 
		-1 votes1 answer60 viewsDelete button does not work!Good evening! I have a page excluirConta.php that is not functional, here is the code: <?php session_start(); require_once("../banco/conexao.php"); if (isset($_SESSION['id'])) { $id =… 
- 
		-1 votes1 answer33 viewsASP NET CORE - Use Session to store lists to prevent BD accessI have little experience in web applications and I have this question. I am developing an application in ASP NET CORE 3.1, that in one of the pages I have 5 Tables (BOOTSTRAP) that are filled by… sessionasked 5 years, 2 months ago Alex Oliveira 1
- 
		-1 votes2 answers22 viewsChanging order quantity - Cakephp 3.8Friends, I’m trying to update the quantity of products in an order cart. My index.ctp is like this: <html> <body> <main class="mt-1 pt-1"> <div class="container wow fadeIn">… 
- 
		-1 votes0 answers8 viewsshow buttons only if logged in user is administratorGuys, I’m trying to do something here, but it’s not working. Look, in my Model Usuarios I have the method LerAdmin : $this->db->query(“SELECT * FROM usuarios WHERE level = 3”); return… sessionasked 4 years, 1 month ago Joao Claudio 1
- 
		-2 votes1 answer189 viewsEmpty session variable when redirectedI am using session variables to check the user logged in to the site. I have two different links to the same page, one automatically generated by a PHP script through a query in my database. The… 
- 
		-2 votes1 answer49 viewsPlace an array in a SessionHello, I have an array with a lot of values I need to pass to a session, I’m trying this way: array_push($array_tabela ,$tabela); $_SESSION['tabela'] = $array_tabela; But the problem is when I take… 
- 
		-2 votes0 answers32 viewsSetting a Session Life in PHPI’m trying to define the lifespan of my sessions, but nothing I’ve seen so far has worked. I set the time of 1 minute and did several tests to see if it works: #Teste 1 - Setei o cache para 1 minuto… 
- 
		-2 votes1 answer680 viewsSESSION PHP LOGINI’m having problems creating a Session in php. It is as if she simply "did not create", when I will validate if she exists with isset it is as if she did not exist. I don’t know what I’m missing,… 
- 
		-3 votes1 answer554 viewsWhat is required to create an authentication system (login/password/session) in PHP? What important points should I be concerned about?I want to create a website with my own authentication system, without using anything ready. I would like to know what the stages are for the creation of such a system, in order. If there is a… 
- 
		-3 votes1 answer525 viewsPHP session with redirect timeI need help with a PHP user session script with waiting time, so that if there is no activity on the page it is redirected to an output page. 
- 
		-3 votes1 answer36 viewsSession not being updatedTo Session does not want to accept the method value POST. She saves the first time, but after the page is updated she disappears. <?php if(isset($_SESSION['b'])){ if ($_SESSION['b'] !=""){… 
- 
		-3 votes1 answer519 viewsHow to save click id on a PHP session?I have the following table: <tr id="teste"> <?php echo '<form id="teste" action="banco.php" method="post"><td><input id="bike'.$fetch['referenciageral'].'"… 
- 
		-3 votes1 answer58 viewsHow to recreate a PHP session without loaning the userIt is possible to recreate a $_SESSION in PHP without dislocating the user? I have a restricted area where he can update some of his information in the database. The problem is that when he logs in… 
- 
		-3 votes0 answers18 viewsSearching for Javascript session cookie does not work what to do?I link the site, and when I look at the cookies, there appears the cookie from another domain (which is a specific tag that is on the site) so I need to create an if that locates if this cookie… 
- 
		-4 votes2 answers1752 viewsProblem with session_registerI have a script here but when I open the file ptc.php in the browser goes blank, I think it is the php version of my hosting that is making this error. I use PHP 5.4.26 and how do I update the code?… 
- 
		-5 votes1 answer1111 viewsDestroy Session when leaving the pageI have a system for registering budgets and I need that when the person closes the page, before, display a confirmation message, if they really want to leave the page. If she confirms, destroy the…