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
answer111
viewsProblems Converting Session to Class in C#
I have the following variable List<MyFile> xmlDisponivel = new List<MyFile>(); This variable is a list of the following class public class MyFile { public string FileName { get; set; }…
-
1
votes0
answers139
viewsShare Sessions with different domains on different servers
I have a little problem. We have 3 sites site1.com site2.com and site3.com. The one site is our master site where we register users and where they log in. We use SESSION to 'LOGIN'. Our problem is…
-
1
votes1
answer77
viewsSession staying open when I close the browser
I have a user control that stores in an Applitioscope a list of users logged in to the system. Together with each user, I save the session id that it is logged in. Each session lasts around 20…
-
1
votes1
answer329
viewsSession Variable does not work Wordpress
I cannot recover session variable using the following code This is a file to which requests are sent, I declare a session variable to use on another page that is called after completion of the file.…
-
1
votes1
answer134
viewsSession Error - Permission denied - sites at different ports
Hello, good afternoon, sir. I’ve been trying to solve this problem for some time: I have a website that runs on the standard door and an administrative system that runs on port 8080. (ex:…
-
1
votes0
answers327
viewsMaintain Session with Angularjs Authentication
I’m wearing the one project to authenticate with Angularjs. I’m using Angularjs 1.6.4 with Wildfly 10 with Java 8 and SQL Server 2014. I can log in correctly, but when I update the page the session…
-
1
votes1
answer594
viewsRedirect after receiving Replay from server?
I have an application that the front end is Vuejs/Quasar and the server is hapiJS. I am working on the login part and would like to know how to redirect the page after receiving confirmation from…
-
1
votes1
answer99
viewsSlowness in restricted file
I have a file in php.php process that receives information in looping via jquery and makes a request to another page with Curl, this file does something around 4 to 5 thousand requests one by one,…
-
1
votes1
answer654
viewsSession in Laravel 5
In my controller, log in as follows: if(!empty($input['user'])) { $result = $this->userRepository->searchuser($input['user']); //Busca o usuario pelo login // dd($result['data']['user']); if…
-
1
votes1
answer215
viewsHow to Block Navbar Functions for Logged-in Users Only?
I wanted to know how to block part of this navbar, with the session, only for users logged in to the page Navbar: <header class="masthead"> <nav class="navbar navbar-expand-md navbar-light…
-
1
votes1
answer87
viewsSave page status without refresh, after expireSession
Here checks if you are logged in public function isLogged() { if (isset($_SESSION['ccUser']) && !empty($_SESSION['ccUser'])) { if ($_SESSION['registro']) { $segundos = time() -…
-
1
votes1
answer931
views(ASP.NET MVC) Create Session variable
I have an ASP.NET MVC application that is published on two IIS servers (homologation and production); In this application, I use the Session variable to save the user’s login in a part of it,…
-
1
votes2
answers798
viewsLog user date, time and IP in Login
Hello, I have a problem in which I can not solve (and I am still a layman in PHP to help), I reviewed the internet and I did not find anything that could help me, is the following, I have a login…
-
1
votes1
answer671
viewsWhy $_SESSION is not accessible on another page
On my site I have a profile page, when the user logs in he is redirected to the page perfil.php, this login is performed on the page entrar.php. So on the page enter I have: enter php. <?php…
-
1
votes1
answer265
viewsHow to make a Session
I have a system that has a login page, but it only sees if there is that email and password that the user typed in the database and releases to the main page. Now I needed to create a profile page…
-
1
votes0
answers64
viewsSession with absolute path
The script below only works if I nay put the absolute path, only the relative one. It has how to make it work with absolute path? Absolute: xmlhttp.open("GET",…
-
1
votes1
answer145
viewsNot getting user level from Session
I am separating the menu according to the user’s level, but I can’t get the level of the Session. Regardless of the user level it only shows the Adm menu which is level 2 Where is the error? Another…
-
1
votes1
answer79
viewsIs it correct to store a record to use during the process lifecycle in a session variable?
Good morning, I have a web system, but it is super flawed... I store ID’s in Hidden input, however, it is visible if inspect element.. if I change the id_schedule to 1, it will update record 1…
-
1
votes1
answer214
viewsPHP$_SESSION is not recognized on the same server at a different URL
I have a.php check file that checks whether the user’s session was started after logging in, which happens is the following: There are two Urls: https://www.site.com.br/controle/usuario/ And inside…
-
1
votes0
answers64
viewsIs the PHP session not renewed when using Ajax?
I have a scheduling page where every 30 seconds send (in background) an ajax request to know what times are still available, if there is an error I show a popup (bootstrap) with error information,…
-
1
votes0
answers331
viewsDisplay array elements without the key
Hello, I have a small "problem". I am trying to iterate an array session through a foreach, but it always returns only one result. So I used a var_dump() and the result was this: array (size=1) 0…
-
1
votes1
answer73
viewsModal that appears once
I have a modal that when the mouse cursor leaves the page it appears a modal, but every time it leaves the page it keeps appearing, I wonder if there is how to verify that from the moment it…
-
1
votes1
answer301
viewsSession PHP does not work in different directories
I have a system where the manager directory is as subdomain: manager.site.com.br When accessing the manager, a Session is generated as below: $_SESSION["Logado"] = true; The session works correctly…
-
1
votes1
answer348
viewsDisplay photo of logged-in user from SESSION
I’ve been having trouble with this PHP code for days. I’m developing a simple user registration system, but I’m using access levels, so far so good! I can already display the user name through…
-
1
votes1
answer720
viewsProblem with Session on Codeigniter after putting website into new hosting
I have the following problem: when trying to accomplish the logon in some browsers or even on mobile phone (it does not occur at all, my friend for example can log in normally), the session simply…
-
1
votes2
answers465
viewsWhich method to use to log a user (JWT cookie vs SESSION)
So, my doubt is the following, which is the best method to create a login "session" for the user. I learned to create this session using JWT in cookie, however the cookie is accessible by the…
-
1
votes1
answer317
viewsInstances of Singleton Asp.Net Core classes
I have a doubt in the following situation: Singleton Classe namespace TesteSingleton { public class Singleton { private Singleton _singleton; public Singleton() { if (_singleton == null) _singleton…
-
1
votes1
answer516
viewsError with Session in PHP
I am making a registration page using PHP. I have a validation to show the user if the registration has been done or not, but is always returning Notice: Undefined index: status_cadastro in…
-
1
votes2
answers128
viewsSession variable always returns Null Asp.Net
Business Class: public class Empresa { public long empresaId { get; set; } public string nomeEmpresa { get; set; } [Display(Name = "login")] [Required(ErrorMessage = "Informe Seu Login",…
-
1
votes1
answer57
viewsHelp with PHP session
Good morning! I have a php system where I use a webservice to perform queries, and save your return in the session to use via ajax. So far so good, the problem is when I need to make two or more…
-
1
votes0
answers72
viewsHOW TO SAVE THE JS VARIABLE VALUE FROM ONE SCREEN TO ANOTHER?
following, help me here with a little problem, I am developing a web application of a site, a QUIZ, in it have screens where the user can register questions in the bank and others where these…
-
1
votes0
answers37
viewsHttpselfhost Serialize daughter entities + Session nhibernate
I have the following method: // GET: api/Pedido/5 [ResponseType(typeof(Orcamento))] public IHttpActionResult Get(int id) { using (OrcamentoRepository or = new OrcamentoRepository()) { var orcamento…
-
1
votes0
answers39
viewsDifferent sessions for each level of access. Is it possible?
I am creating a CRUD for the service, where I will have 3 levels of access. Levels: Administrator (Register and delete and edit information) Collaborator (Registration only information) User (Only…
-
1
votes0
answers42
viewsStore form data in array without database
How to store form data in an array with the $_SESSION variable in PHP, without database? <form class="needs-validation formulario" novalidate="" action="" method="POST"> <input…
-
1
votes0
answers19
viewsPHP manipulating SESSION - How to disconnect MULTIPLE SESSIONS
Good morning! It is important to note that this question is about SEVERAL SESSIONS, since I searched the forum and the questions on similar subject refer only to one session. After several tests to…
-
0
votes2
answers2569
viewsUpload progress with jquery or php
Guys I use a script to upload images with PHP and JQUERY and would like to display the percentage of progress while it is sending, how can I do that? Thank you..
-
0
votes0
answers227
viewsHow do I ask for a new login when the session expires?
In my "online" Apps I use a lot of websession variables. When the session expires due to lack of use, the App is unusable because many parameters disappear. I want to launch a new login request msg,…
-
0
votes1
answer1327
views -
0
votes1
answer518
viewsVariable in Ajax request
Code to receive the numeroCartao of the user via $_Session and show all information about it. And from here I can delete this user via AJAX. In this excerpt of the code I can see the array…
-
0
votes1
answer386
viewsPHP session is not configured
I’m using session_start to create a session for the user when he is authenticated to the server, but the session is not being maintained in the page exchange, I am using AJAX requests to…
-
0
votes1
answer529
viewsHow to save data passed by parameter to the url in a Session?
It is as follows, I was asked to do this: Make the user can pass the parameter in the image url and the desired color (to change the image and color according to the client), at the time you receive…
-
0
votes1
answer136
viewsSessions on a login system
I made a login system in PHP where, after authentication, I go back to the page index.php. So far so good, the problem is that when I redirect the user to the index.php again, it asks me for login…
-
0
votes1
answer523
viewsMake $_SESSION work as session_register
I changed my session_register for $_SESSION, meanwhile $_SESSION does not allow me to use the variable in the same way session_register. For being deprecated I thought they corresponded to the same…
-
0
votes1
answer117
viewsService to manage PHP sessions (Symfony2)
I need to create a PHP Service to manage the Sessions of an application, someone has a practical example for this? PS: I am a beginner! :)
-
0
votes3
answers2160
viewsWhat is the logic of a shopping cart?
I am learning programming and want to try to make a shopping cart system in PHP that adds the products in the cart and finalizes the order. From what I’ve been seeing, it seems that this type of…
-
0
votes0
answers178
viewsPassing information between pages
How best to pass information (data) between pages? Example: I have 4(four) pages dadospessoais.php, endereco.php, habilitacoes.php and salvar.php. On the pages (dadospessoais.php, endereço.php and…
-
0
votes1
answer76
viewsSession is recreated automatically, with a field inside
I have a Session class where every time I urge her she automatically starts the session. When in another file I do I destroy the session through a method called doLogout I see that it automatically…
-
0
votes3
answers2044
viewsProblems with session_start()
I’m having trouble with my PHP code for the User Login. This code is working on local machine, however I went up in my instance Amazon and the moment I log in the server does not authenticate the…
-
0
votes1
answer47
viewsScript execution after clicking a link
I am learning PHP and my challenge is to make a shopping cart using SESSION. Within my logic, I’m trying to execute a array_push, after clicking on the link "insert product in cart", from the…
-
0
votes0
answers47
viewsJavascript and components fail to respond
I’m having some problems with session times (I assume that’s the problem) in my application. My client says that sometimes the application does not work, namely Javascript’s and components that are…