Questions tagged as 'session'

1
answer

PHP - Verify that the session (login) is active [closed]

I need to send an email notification of abandonment of the product in the cart to the customer after X minutes that he left the site without buying. Does anyone know of any simple and effective way to verify that the user's login session is s...
asked by 15.07.2016 / 15:28
2
answers

Is there a way to pass the $ _SESSION value to a link?

There is a login system with email and password, however, since I already used $ _SESSION to capture the session id and the user name that is logged in, it would not be a problem to save email and password too, so I would like to do with this lo...
asked by 29.08.2018 / 21:01
1
answer

Error, Can not save to bank using hibernate

Good afternoon, Person, I need your help! I have a problem in my project, my hibernate is working on creating tables but when I did test to try to save it does not work and the following error appears in jUnit ( org.hibernate.MappingException: U...
asked by 10.09.2016 / 06:38
1
answer

How to return the id of the user who is in the session

require_once('conexao.php'); @$email = $_POST['email']; @$senha = md5($_POST['senha']); // $email = "[email protected]"; // $senha = "12346"; $pdo = $dbconn->prepare("SELECT userid, nome, nivel FROM usuario WHERE email=:email and senha=:...
asked by 17.03.2018 / 23:13
1
answer

Intermittent Session Error in CodeIgniter [closed]

I have a problem with the projects that I develop that intermittently generates a session error, but the error is only when the project is hosted on the web server (I use CPanel from a reseller of HostGator). When the error occurs, if the use...
asked by 05.07.2016 / 02:53
1
answer

Wordpress / PHP: Problems keeping variable $ _SESSION when changing page

I have the following code in the same file: add_action( 'init', 'iniciaSessao', 1 ); function iniciaSessao() { if(!session_id() ) { session_start(); } } function info() { $_SESSION['nome'] = 'meu nome'; } info(); //session_re...
asked by 04.09.2018 / 17:33
1
answer

How to return data from the user who has logged in?

I need someone to help me with the following problem. I want to perform a select on a MySQL database, the select will be done via Web service with PHP returning a Json for my Android app. What happens, the user types login and password...
asked by 01.04.2016 / 16:18
1
answer

When browsing page receives unexpected value from $ _SESSION

I have a page with Dynamic Menu accessing the user permissions page, it works fine except that the value of SESSION regardless of which user it is, always passes the field contents of the last record read and not the page actually to be a...
asked by 22.03.2015 / 23:20
3
answers

Is it possible to keep an object in a session variable?

I create the variable: $Client = new SoapClient(...); And then: $_SESSION["Cliente"] = $Client; To not have to make a complete request to each page. Is there a possibility?     
asked by 06.07.2016 / 20:28
1
answer

Empty session variable when redirected

I'm 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 other one I put on the site myself. What is h...
asked by 07.02.2018 / 03:22