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
-
0
votes0
answers65
views -
0
votes0
answers162
viewsError while doing Hibernate relationship with Java
Good afternoon guys! I have a question in Hibernate. I have the following case Person - Client - Supplier But I’m having trouble making the relationship. follows my codes New Error 18:50:34,405…
-
0
votes1
answer66
viewsMake a session expire
I am trying to put on my page that if the visitor becomes 20 minutes inactive, the session expires, php destroys the session and redirects the visitor to the login page. But it’s not working. My…
-
0
votes1
answer221
viewsHow to work with Session at the / jquery angle
I’m developing a website where I need to store in the section some data as surveys performed. We chose to develop the system’s from in angular/jquery. In php I saw that there are Sesssions. These…
-
0
votes1
answer640
viewsAutomatic refresh only once in PHP
I need to do an automatic "refresh" on some pages of a customer’s site. However, this "refresh" needs to happen only A time. I know I could put the meta tag below, for example: <meta…
-
0
votes1
answer269
viewsFlash Data. $_SESSION in PHP
Hi. I was wondering if there is any way to declare a variable $_SESSION only for the next request, then it is automatically deleted, as in the method$this->session->set_flashdata('msg',…
-
0
votes1
answer175
viewsHow to configure user downtime in Asp.Net Core?
I started studying Asp.Net Core these days, I’m working with version 2.1. I can already log in and log out of the user, only I don’t know how to set his downtime. I put this code, but after a few…
-
0
votes1
answer621
viewsSession PHP does not work
I’m starting with PHP and when trying to do an exercise proposed in an apostille, my $_Session variable is not working as it should, can you tell me which error in the code? <?php session_start()…
-
0
votes1
answer455
viewsCustomize data from a codeigniter session array
I am trying to create an array with the data I recover from the database, my code is like this $usuario = $this->input->post("usuario"); $senha = $this->input->post("senha");…
-
0
votes0
answers56
viewsPersist session even after server crash and up again in Nodejs
How do I persist the user login session even when the application "crasha" and comes back again. Currently when the server gives some unexpected error I go there fix the error and saved, then the…
-
0
votes1
answer700
viewsHow can I get an Entitymanager from an org.hibernate.Session
I work with Hibernate using Session. public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); // A SessionFactory is set up once for an application…
-
0
votes1
answer38
viewsclear message php
I set up a CRUD and posted the message "Record updated successfully." to appear as soon as the registration is completed, but no matter which page I go to, the message continues, I want as soon as I…
-
0
votes0
answers108
viewsSearch in Oracle Bank losing session
Good morning dear friends, i am having serious problems regarding using Oracle database and losing session. The scenario is as follows: of thousands that you want to accomplish, some of them crash…
-
0
votes1
answer363
viewsError listing items using JSON and PHP
I am inserting items in a list through a SESSION in PHP, these items will be read in another page using JSON, but is giving error and I am not able to solve. session_start();…
-
0
votes0
answers18
viewsLaravel 8 is creating a session file for each visitor
With each new visitor to the site, Aravel is creating a new session file in the/Sessions framework folder, even if that user does not create an account or log in or anything like that. Entering a…
-
0
votes1
answer595
views$_SESSION["Danger/Success"] in php to display alerts
logicaUsuario.php <?php session_start(); function usuarioEstaLogado(){ return isset($_SESSION["usuario_logado"]); }; function verificaUsuario(){ if (!usuarioEstaLogado()){ $_SESSION["danger"] =…
-
0
votes1
answer2531
viewsHow do I get user id in a session?
I am doing a project using jsp and Servlet, I need that when a user logs in, his id is saved in the session, so that with this id, the system knows that this id user is making changes to his data…
-
0
votes1
answer103
viewsError displaying alerts with $_SESSION[""]
I’m running a test site to train a little bit of php, am using $_SESSION[""] to show alerts, however, when climbing to a servidor non-local alerts stop working. PROJECT LINK->…
-
0
votes2
answers497
viewsRecording data from a SESSION in the BD
I would like to add in the field registered the functionname logged in to database. <?php require_once("../../../session.php"); require_once("../../../class.user.php"); $auth_user = new USER();…
-
0
votes1
answer235
viewsWhen password or login is wrong session is not closed
Good afternoon, I made a schedule to check if the login data is wrong or not, when I put the wrong data it gives me a alert saying that the login or password is incorrect but when I click okay he…
-
0
votes1
answer330
viewsError 1062 at some times in database system
I am facing the following error while running my app: Error Number: 1062 Duplicate entry '1484918130' for key 'PRIMARY' INSERT INTO sistema_session (id, ip_address, timestamp, data) VALUES…
-
0
votes3
answers2846
viewsBlock access to PHP pages with SESSION
I am practicing PHP. I’m setting up an admin panel with login screen. I have my index.php page which is the login (EMAIL AND PASSWORD). After logging in, direct the administrative page.php The…
-
0
votes0
answers109
viewsI cannot recover $_SESSION with ajax and codeigniter
I’m having trouble recovering a $_SESSION using php native Session with ajax in codeigniter, because when I try to verify the data informUndefined. follows the code, since thanks to all. controller…
-
0
votes2
answers189
viewsLaravel 5.1 problem with csrf_token
I’m having a problem on my site made in Laravel, it happens the following my application in Laravel is not returning the session Token that would be {{ csrf_token() }} when I execute an action as…
-
0
votes1
answer113
viewsSplit array according to payment types
Code of index php. <form action="add-to-cart2.php" method="post"> <label for="">Name</label> <input type="text" name="nome"> <br> <br> <label…
-
0
votes1
answer659
viewsPhp - Pick variable by _GET or _POST? How to make name appears instead of Cpf
Well, I’m doing a project where the student enters by Cpf and date of birth. However, in the user div <div=class"user"> in home.php (where the greeting and user name should be) Cpf appears…
-
0
votes2
answers1165
viewsBlock pages via url
The restricted page is blocked for access via url, but I want to leave the warning on the login screen. For example: when you type the address of the.php corporate page in the url, the system…
-
0
votes2
answers249
viewsComparison of strpos() variables - PHP
I need some help between levels of access, I’ll post some of the code. It is a connection in AD (Active Diretory), authenticating the user and searching to which group he belongs. This is the login…
-
0
votes1
answer97
viewsError: Could not parse type 'xxx[]' because it does not have any known mapping to the value layer
In the controller I have my session built. public const string ListaPermissao_SessionName = "ListaPermissao"; private List<ListaPermissao> ListaPermissaoEnvio { get { if…
-
0
votes0
answers35
viewsPhp Sesssion Does not pull image
<p><img src="<?php echo $_SESSION['picture']; ?>" alt="" style="width:50px;height:50px;"></p> <p>Bem vindo <?php echo $_SESSION['username']; ?></p>…
-
0
votes0
answers31
viewsPrivate variable being added to php automatically
I will try to explain the problem, however, I have already said that I could not even find words to research what happened: I have a file php user. <?php class Usuario{ private $grupoPermissao =…
-
0
votes2
answers398
viewsSession does not work as expected in Ajax and PHP request
Well I have a main page index php. where the person executes an action and makes a request POST with Ajax. In this main file I create a session with some data that I want to keep safer and not be…
-
0
votes1
answer57
viewsCan creating multiple sessions affect user performance?
My site creates named sessions for each page to be used in requests and stores unique tokens generated each time the page is accessed and other data. Example: $_SESSION['RSD']['page_username_id'] =…
-
0
votes2
answers1733
viewsProblem with $_SESSION on login system, $_SESSION closes alone
My login system is not working... In my project I have a file called header.php <?php ob_start(); //abrir sessao session_start();//iniciar sessao error_reporting(0); //ignorar alguns erros…
-
0
votes2
answers241
viewsAdd cart values from a Session
How could I print on the screen the total products of a shopping cart coming from a PHP Session? <?php if(isset($_SESSION['product_cart'])){ foreach($_SESSION['product_cart'] as $data){ ?>…
-
0
votes1
answer51
viewsSession passing value that was not expected
Hello, I’m a programmer and I’m making a system for the school I studied, but I found a big problem. School System <h1 id="titulo">Sistema Escolar</h1> <div> <ul id="menu">…
-
0
votes1
answer19
viewsSave to Session a Link and destroy another session to make site translation
How Can I Make You Click On A Flag It Records Your Language Data in a Session Brazil ==> writes string "" United States ==> saves to session the string "uses" and by clicking on one destroy…
-
0
votes1
answer1345
viewsUsing data from a $_SESSION in Javascript?
Talk, you guys, all right? I’m picking up something that I believe should be something simple. I have this little javascript function where according to the level of the user should send to…
-
0
votes1
answer569
viewsAlert message in SESSION
I have a system that works perfectly on the computer(A) that was developed and, when passing to the computer(B) server with the same settings, the same version of Easyphp and etc, presented many,…
-
0
votes1
answer540
viewsLosing Session after Request
Good guys, I have a problem that so far could not solve. It only starts to occur after a ajax request, in which I submit a document and return to url in a json, to be caught in the javascript, be…
-
0
votes1
answer213
viewsCache Session in Python
I have a script Python running a Tornado application. Inside the onmessage I have several variables that will keep an equal value always, so there is no need to fill them in whenever a new message…
-
0
votes1
answer305
viewsSession Hibernate errors - getCurrentSession()
Please, I would like your opinion on that code if possible. If this coherent or needs to be improved because I constantly have errors org.hibernate.TransactionException: rollback failed or…
-
0
votes1
answer61
viewsHow to prevent pages from being loaded by the browser after logging out
I’m trying to make an academic site where users need to log in (login page :pagina.php) there will be directed to the page(name.php) where you connect to the bank and if you have the registration…
-
0
votes0
answers244
viewsproblem with Session start
I am creating a login system with session to register. I believe this is ok. It is recording well in the database; The e-mail confirmation is working perfectly and the login too, but when I try to…
-
0
votes1
answer550
viewsError Dashboard PHP Page - Cache Limiter Session start
I’m having problems with my site, in netbeans the site worked perfectly, but when hosting the site br.000webhost.com for testing, it happens that in some pages I get the following message: Warning:…
-
0
votes1
answer760
viewsHow can I block access to application pages with session filter?
Session Filter Code @WebFilter(urlPatterns = { "/*" }) public class FiltroSessaoUsuario implements Filter { public void init(FilterConfig fConfig) throws ServletException { } public void…
-
0
votes1
answer35
viewsDoubt when using SESSION to store data
I’m trying to display n names from a list, I’m making use of Sessions to make this possible. When I use Session through the form page the elements are added n times to the array, however when I use…
-
0
votes1
answer44
viewsSave data from a search to a page
Guys, I have the following situation: I have a simple PHP page where I have a search filter that allows me to search by Status, CPF/CNPJ, Social Reason/Full Name, Start Date and End Date. After…
sessionasked 6 years, 8 months ago Gustavo Vazzoler 31 -
0
votes1
answer53
viewsMy session is not being destroyed -PHP-
I have the following code on a user page: public static function destruirSessao() { if (isset($_SESSION)) { session_start(); unset($_SESSION["codigo"]); unset($_SESSION["nome"]); session_destroy();…
-
0
votes0
answers62
viewsLaravel shares session
I have a system A where I store a session $login = $request->input( 'login' ); $request->$session()->put('login', $login ); And a system B which stores the session:…