Questions tagged as 'session'

1
answer

How can I block access to application pages with session filtering?

Session Filtering Code @WebFilter(urlPatterns = { "/*" }) public class FiltroSessaoUsuario implements Filter { public void init(FilterConfig fConfig) throws ServletException { } public void doFilter(ServletRequest request, ServletResponse r...
asked by 17.02.2018 / 15:22
1
answer

Show button if logged in / out if not

I want to show the "panel" button if the user is logged in, and if I do not want to show the login button, is it possible? Follow my code ... <?php if(isset($_SESSION['usuario'])){ "echo "<a href="logado.php" class="btn btn-succe...
asked by 07.02.2018 / 07:10
0
answers

problem with session start

I am creating a login system with session to register. I think it's okay. It is writing well to the database; The confirmation email is working perfectly and login too, but when I try to create a session to protect my system, the HT...
asked by 29.01.2018 / 16:57
0
answers

Session in PHP is reset?

I'm setting up a system and when the person logs in he creates the sessions normally, for example: $_Session['logado'] = 'S'; But when I redirect to the main page, the session is simply zeroed and empty, "no value" . What can it be?...
asked by 19.01.2018 / 16:17
1
answer

Hibernate Session Errors - getCurrentSession ()

Please, if possible, please comment on this code. If this is consistent or needs to be improved because I constantly have errors of org.hibernate.TransactionException: rollback failed or org.hibernate.TransactionException: Transaction n...
asked by 18.01.2018 / 12:35
2
answers

Android Storage

I'm starting in the Android universe, and I have the following question: In a login system, which storage type should I use to persist the data of the user who logged in to that session, and when I click on leave "kill" this session informati...
asked by 11.01.2018 / 11:56
1
answer

Cache \ Session in Python

I have a script in Python that runs a Tornado application. Within onmessage I have several variables that will keep an equal value always, so there is no need to fill them whenever a new message arrives for the Tornado. Currently I d...
asked by 19.12.2017 / 11:21
1
answer

Change session variable value Laravel

I have a problem with how to change the session variable in Laravel. When the user logs in, some variables are set in the session, one of them is the user name. In a given form, there is the option to change the user data, if it changes the name...
asked by 25.11.2017 / 05:14
1
answer

Session in php gets lost after page change

I am having serious problems need to deploy a script in php that I did on a centos server that I installed. Apparently everything was ok. At the time of logging in. It logs back to the login screen and does not generate errors. I gave a va...
asked by 30.01.2018 / 03:37
0
answers

how to solve session problems in php

Working in a company, which makes use of web applications (php) the page was well developed, but there are small details that could improve the processes, I'm not a developer yet! But I'm studying to become. The page in question presents a small...
asked by 04.12.2017 / 07:44