Questions tagged as 'session'

0
answers

How to differentiate the sessions in the browser tabs?

In a web application implemented in Java using JSP and Servlets, if I store information in the user session, this information is shared from all the tabs of the same browser. How to differentiate sessions from browser tabs? In this example:...
asked by 08.01.2018 / 18:58
1
answer

Login with angle 4

I'm learning angular4, and I'd like to know a way to login with it. I can get the data from the backend, but how do I configure the session? (I came from php, the era just use session). I saw something about storing a token in the localstorag...
asked by 18.08.2017 / 19:30
0
answers

Session not holding value

My SESSION is not storing the values over its lifetime. Here I used to demonstrate a var_dump : var_dump($_SESSION); array (size=3) 'no_pessoa' => string 'Wander Carlos' (length=15) 'cd_pessoa' => string '1' (length=1)...
asked by 17.05.2017 / 17:17
1
answer

Destroying Session and Session Objects in JSF

I'm using session.invalidate(); to invalidate the session, but when I access the Tomcat manger it shows me that the session still exists. The following code shows me that even after using the invalidate () method I can display informat...
asked by 17.01.2016 / 00:07
1
answer

Problem with session_set_save_handler

I'm using session_set_save_handler to write the session to MySQL, but an error has been tormenting me. When I log in to IE with a user, then I close the browser without giving logout and I enter Chrome, I'm already logged in wit...
asked by 05.05.2015 / 00:26
2
answers

Where is a PHP session file stored?

I've read about files related to $_SESSION , but I'd like to find them. Where are they stored?     
asked by 25.09.2017 / 16:33
3
answers

Infinite loop with $ _SESSION and redirect

What would be the best practices for maneuvering the following PHP code? if(!isset($_SESSION['email'], $_SESSION['senha'], $_SESSION['nivel'], $logado)){ header("location: index.php"); } And of course when I kill the session it goes i...
asked by 22.05.2014 / 12:02
3
answers

How to write content in a session in classic asp and move to an mvc page?

How to write check of checkbox to session so you can use it on another page? Is it possible?     
asked by 01.03.2016 / 18:33
1
answer

PHP presents "Failed to write session data" error at random times

I have a site that is fully functional and has a failure rate of 0.0037%, but all errors are the same. Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) I looked for...
asked by 12.10.2016 / 10:15
2
answers

How to save and retrieve all Sessions of a user

I'm developing a system in which I need to recover all users logged in or logged on to the server. Context: When the user logs in to the system, in addition to creating the session , I save the information with the logon date and session tim...
asked by 28.10.2014 / 19:34