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
votes1
answer455
viewsDjango Session, emite: Object of type '' is not JSON serializable
I am creating a student but when I try to save it within a session, returns me the following error: Object of type 'Student' is not JSON serializable In Settings.py: INSTALLED_APPS = […
-
0
votes0
answers414
viewsPass Javascript/Jquery variable to PHP
I’m trying to pass a file variable Javascript external to PHP, picking up her value again, but it makes a mistake when I try to pass to PHP and request the POST in Ajax. In every way I’ve tried, the…
-
0
votes0
answers89
viewsSlim Framework does not recognize the saved sessions
Guys, my directory in the slim framework was default.. /public /vendor /src /cache /app among other folders.. and within the /public A index.php was calling the other files and folder normally..…
-
0
votes1
answer43
viewsSend Cart Session by email with Phpmailer
I have this code that shows the results of the items in the cart <?php session_start(); require_once "functions/product.php"; require_once "functions/cart.php"; $pdoConnection = require_once…
-
0
votes0
answers69
viewsEvery time I click to go to another page, ask for the login again (LARAVEL 5.6)
Good afternoon, everyone Every time I go to another page my application asks to redo the login Follows route Route::get('/', function () { return view('welcome'); }); Auth::routes();…
-
0
votes3
answers55
viewsSession variable does not exist
A few days ago I reported a problem that was happening in the code I was using, but as it lacked many things I decided to use another. In the new code, there are variables to save the session, as…
-
0
votes0
answers153
viewsHow to handle expired session within the 4.x bootstrap modal?
I have a system where the user chooses a date and time for scheduling, I increased the session time because the user needs to fill out a form with various information, it’s working beauty. It turns…
-
0
votes1
answer38
viewsSESSION is not loading $_SESSION[']
I am making a user authentication system based on SESSIONS. I created a function that makes the LOGOUT that is like this: session_destroy(); // Cancela/Exclui a sessão iniciada…
-
0
votes1
answer211
viewsLaravel 5.7 - Ajax call and Session::get()
Some days I’m banging my head to read a dice Session through a ajax call. In an application without Framework I do this normally using the PHPSESSION, however in Laravel 5.7 I can’t do it at all. My…
-
0
votes1
answer159
viewsLaravel array Session overriding
I’m trying to record product data in a Laravel, but it overwrites the session. I have an array of products in the view: @foreach($products as $product) <form action="{{ url('/cart/add') }}/{{…
-
0
votes1
answer42
viewsBottle: accessing the same session on different Canister devices
Hello, I am developing a project to study character and I am with a great inconvenience. I’m using: astroid==2.0.4 Bottle==0.12.13 canister==1.5.1 Colorama==0.4.0 cymysql==0.9.12 Cython==0.29…
-
0
votes1
answer28
viewsLogin Session in an Application
Good Afternoon Guys, I am making a system for company where I work but I have a problem that I can not solve. This is the Code I’m using: Code to show user and position require('conBanco.php');…
-
0
votes0
answers349
viewsI lose the $_SESSION from one view to another php mvc system view
I’m creating my own mvc php to acquire more knowledge. But I’m running into something very strange, I miss the $_SESSION of a view to another view. a. php ----- view a.php <?php session_start();…
-
0
votes1
answer254
viewsI need to prevent direct access (on a second page) in php
The question is a little confusing, but I’ll try to explain it as best I can. I have an apache2 server running on linux (Raspbian Stretch Lite) with php7.0 and the necessary mods. On the server has…
-
0
votes0
answers278
viewsNodejs Express Sessions problem: all information is being exchanged
I need help fast ... I’m wondering why my web application (Nodejs 10.x) is giving this strange error: It’s swapping out user sessions... When a user edits their profile, the information always goes…
-
0
votes1
answer454
viewsLaravel keeps missing the session
Hello I have a system developed in Laravel 5.6 that keeps missing the session When I log in: private $prefix = ''; public function __construct(){ $this->prefix = env('APP_NAME')."_"; }…
-
0
votes2
answers86
viewsError including Session or foreach in PHP code
I am studying PHP with a book I bought and the exercise is to create a task list. The browser is returning me the following error: Notice: Undefined variable: lista_tarefas in C: Users Elton Desktop…
-
0
votes1
answer45
viewsProblems with PHP Sessions and Ajax Requests
That’s for the beast, haha. I have a hosted website (privacy I will not disclose the link) that the segment is from personal protective equipment. Have products to add to cart. Problematic situation…
-
0
votes0
answers33
viewsSession is lost after post with Fileupload - ASP.NET
I am using Fileupload in a register page of a logged area, but when the post runs my Session is lost. I tried using Updatepanel and it didn’t solve the problem. Other solutions that I tried and also…
-
0
votes0
answers95
viewsHow to stop a Session?
I am working with Java Swing. I have a report screen, which when it is clicked on the confirm button, it calls the generate method. The generating method goes in control, and the control goes in the…
-
0
votes1
answer51
viewsParameter Crossing in ASP.NET
I have the following code: Admin Page: private void Salvar() { Session.Add("Salvar", txtSobre.Text); try { if (txtSobre.Text != string.Empty) { Session["Salvar"] = txtSobre.Text.Trim(); } }…
-
0
votes2
answers175
viewsHow to call a modal using javascript or another language that works within HTML?
Hello, I have a modal that has a registration form, when I click to register it calls a code PHP, that registers the information and initiates a session 'done registration. After opening the…
-
0
votes1
answer207
viewsProblems logging in with Vue, Vuex, Xios and Laravel
I’m trying to log in an application that uses the Windows as back/api and the front with Vue/vuex/Vue-router, but when receiving the token I can’t keep the status in the store after updating the…
-
0
votes1
answer143
viewsSession variable is empty when loading page set in <form action=""
I’m beginner in php, I’m doing a quiz as a college job... By clicking submit, using a echo in the variable $_SESSION['id'], normally displays the content (receives the last id inserted in the…
-
0
votes1
answer64
viewsAdd data in Session array
I am using PHP to develop an application and I am using the following code to keep information in a session and return the data to generate an alert for the user: class Data{ const DATA = "DATA";…
-
0
votes3
answers588
viewsRecover $_SESSION with Ajax
It is correct/safe to set a Session in PHP and recover this value using AJAX? I am creating an application using transparent Pagseguro checkout and need to pass a value as Reference (Identifier).…
-
0
votes0
answers66
viewsSession does not open when logging in
I’m changing an old admin project, I was able to switch passwords from sha1 to password_hash, but the session no longer opens when logging in. What could be happening? I have searched and found no…
-
0
votes1
answer628
viewsLog out after 5 minutes of inactivity
Hello, I am lost in this logic, I am using codeigniter, and I am trying to expire the session after 5 minutes of inactive (in case the user does not access the page for up to 5 minutes), I tidied up…
-
0
votes1
answer52
viewsHow to develop with Cooldown with Express-Session
Hello, I am developing a feedback system. The person fills in some data, sends and saves in the database. However, for security reasons, I wanted to create a cooldown so that the person only send…
-
0
votes2
answers86
viewsHow do I pull all user data from Session?
To summarize, I created a page where the user when logging in will be able to see your data, it is responsible for displaying all of them and still some options to edit (but this is not what…
-
0
votes0
answers16
viewsHow to use the session (cookie) of another site that was not set by flask
I wonder if there is a way to use a cookie set by another site, in my application in flask with python. I need to authenticate on a site that requires the A3 token, but I can’t capture this token…
-
0
votes0
answers67
viewsIs it possible to authenticate a user on multiple services?
I have two distinct services from each other, but both share the same data for authentication, so I made a single-screen entry that gives you the service options that the end user wants to enter.…
-
0
votes0
answers31
viewsHow do I detect logout when the browser closes or when the session closes (timeout reached, inactivity, etc.) in Laravel 8?
I am trying to change the default behavior of the Illuminate Session Cookiesessionhandler class so that when the Destroy method is invoked it is registered in the database when a user session has…
-
0
votes2
answers43
viewsHow to pass product information with parameters and pull in shopping cart?
i am new in the programming area and am creating an Ecommerce, until I came across the following situation when submitting my form via ajax. Items sold on the site have parameters, for example: The…
-
-1
votes1
answer376
viewsHow to block login on 2 devices?
I am developing a PHP application where the user can stay logged in even after signing out, using cookies. However, the user cannot stay connected to 2 devices simultaneously. More specifically,…
-
-1
votes1
answer145
viewsWhen browsing page receives unexpected value of $_SESSION
I have a page with Dynamic Menu accessing the user permissions page, this working fine except that the value of SESSION regardless of which user it is, it always passes the field content of the last…
-
-1
votes3
answers418
viewsIs it possible to keep an object in a session variable?
I create the variable: $Client = new SoapClient(...); And then: $_SESSION["Cliente"] = $Client; Not to have to make a complete request on each page. Is there such a possibility?…
-
-1
votes1
answer1152
viewsPHP - Check that the session (login) is active
I need to send an email notification of product abandonment in the cart to the customer after X minutes he left the site without buying. Does anyone know any simple and effective way to check if the…
-
-1
votes1
answer294
viewsError, I cannot save in bank using Hibernate
Good afternoon Pessoa, I need your help! I have a problem in my project, my Hibernate is working creating tables but when I tried to save it does not work and the following error appears in junit(…
-
-1
votes1
answer749
viewsHow to return data from the user who logged in?
I need someone to help me with the following problem. I want to realize a select in a Mysql database, select will be done via web service with PHP returning a Json to my Android app. What happens,…
-
-1
votes1
answer46
viewsWordpress/PHP: Problems keeping $_SESSION variable when changing page
I have the code below in the same file: add_action( 'init', 'iniciaSessao', 1 ); function iniciaSessao() { if(!session_id() ) { session_start(); } } function info() { $_SESSION['nome'] = 'meu nome';…
-
-1
votes1
answer219
viewsIntermittent Session Error in Codeigniter
I have a problem in the projects 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 Hostgator resale).…
-
-1
votes1
answer328
viewsIf I declare a global variable for my page, is it accessible only in this session?
Hello, I have a question. If I declare global variables for page, they are unique to this session or they can be changed in other sessions? I had problems in other systems that I developed with the…
-
-1
votes1
answer165
viewsWhat’s the secret for on the express?
I have an express application, but I do not know how important it is to set up secret in middleware session(). Could someone explain to me what secret does? What is the function?…
-
-1
votes1
answer573
viewsHow does an express session work?
I have a problem logging into my application. If a user logs in, they log in to everyone who visits the site. Could you explain to me how a session works so I can understand better?
-
-1
votes1
answer732
viewsHow to remove a user due to inactivity?
I wanted to know how to remove a user when it becomes inactive on the page, for example in Phpmyadmin, which removes the user after 24 minutes of inactivity? If the first part is too difficult to…
-
-1
votes1
answer1269
viewsHow to return the id of the user 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,…
-
-1
votes2
answers45
viewsIs there any way to pass the value of a $_SESSION to a link?
There is a login system with email and password, however, as I already used $_SESSION to capture the session id and the name of the user who is logged in,clicking only on any link that gave access…
-
-1
votes1
answer134
viewsHow can I delete a line from a Session?
I have a NO DATABASE ENTERED page, the registration data is being stored in Session. I am using a Reset to store this. The delete command that I used before was through Reset, which is wrong because…
-
-1
votes1
answer43
viewsSession in php giving error
Good afternoon guys, trying since yesterday and not getting, next I have these two tables in the bank, when I soon save this session $_SESSION['username'] = $username; but they need to give a select…