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
answer8366
views -
1
votes3
answers2411
viewsHow to record content in a classic Asp Session and move to a mvc page?
How to record the checkbox in a session to be able to use it on another page ? It is possible ?
-
1
votes1
answer499
viewsBack 2 pages with php / create session from last accessed URL
I would like to know how to create a session of the last accessed url, why this: I have a login system on the site that if the person clicks to buy the product and is not logged in, it is directed…
-
1
votes3
answers1624
viewsPlace an Array in a PHP cookie
I have a query that returns the accesses of the user who just logged in. I need to turn them into an array and store them in a session and a cookie. Follow code: //ARMAZENA AS PERMISSOES DO PERFIL…
-
1
votes1
answer35
viewsSession from the Config
I have the following case: I want to send an email from cakephp, but since there is more than one user in the database (each containing a different email), I need to send each user’s email and…
-
1
votes2
answers423
viewsCodeigniter , Session class is safe?
Codeigniter has its own Session class, that is, it does not use PHP native Sessions. Note: The Session class does not utilize Native PHP Sessions. It generates its Own Session data, Offering more…
-
1
votes0
answers231
viewsStore video session inside Session or php cookie
How do I store the time of viewing a video (Html5) in a Session or cookie with php? The idea is to create a mini video platform, and to store the runtime within a cookie | Session, and when the user…
-
1
votes0
answers138
viewsError of Session in Java
I have the following methods : public void delete(Class c, int id) throws SQLException { Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); try{ Object ob =…
-
1
votes2
answers558
viewsProblem with Session variable
On my website, I have a part of the code where two checkbox options should be shown for the check-in date case with difference greater than or equal to 72 hours (or 3 days) compared to today.…
-
1
votes0
answers203
viewsSign in when making web service requests
I created a Web Service that brings results in the format JSON in java, but sometimes when the user makes some request to the Web Service the same hangs and interrupts the whole service, I wonder if…
-
1
votes2
answers109
viewsHow to ensure that a SESSION expires if the user accesses a copy of the application that is in another directory
I have a php application where I use Sessions for login control. The application is in meusite.com/minhaapp (I will call App1) It turns out that for testing I created an instance of my application…
-
1
votes1
answer467
viewsMaintain Session after closing browser using PHP
I’m making a cart using session, has how to increase the time of session? below is the class I created for my shopping cart. class carrinhocompra{ public function __construct(){…
-
1
votes1
answer110
viewsSubscribe to a php Session
When the user accesses the property details page on my website, I need to store the broker’s email in a Session, and when he sends the proposal form, the broker’s email is sent to the file…
-
1
votes1
answer146
viewsDo I need to use session_generate_id on all pages?
Guys I met this function recently, I know it generates another random id for the session, but my question is the following, can I use this function only once in case after logging in, and in the…
-
1
votes1
answer132
viewsCakephp 2.X : External SESSION
I have the following situation: I have my application running with Cakephp 2.X, but the authentication system is external and I don’t have access to it, the only thing I was given are the $_SESSION…
-
1
votes2
answers258
viewsControl of the appearance of modal
I created a modal, that when clicking on a click it asks if the person wants to register the email to receive more information. And this modal is on more than one link throughout the site. Could I…
-
1
votes1
answer666
viewsSession variable "balance" does not update
I have a problem that’s never happened to me before. My balance session variable does not update on the .php. page.It is updated in the database after an UPDATE. But on the page is only updated if I…
-
1
votes1
answer1377
viewsPHP variable storage - $_SESSION x $_GET
Hello friends. I have a question about best practices applied in development: What would be the best form of temporary storage of variables in an application? I have a PHP application where I can…
-
1
votes0
answers120
viewsOver-use sessions can stop a pool on IIS?
Excessive use of sessions can cause a pool to stop? Assuming it is memory overflow, in this case, it results in exceptions also accounted for in the pool failure protection settings or in immediate…
-
1
votes1
answer95
viewsBetter options to SESSION?
I have always heard many people say that SESSION is not performative and that it was not advisable to use SESSION in applications . NET, but so far I haven’t found anything I can use in place of…
-
1
votes2
answers1262
viewsPHP Check/Take Down Login Duplicity Session
Is there any tool or something of the kind to check if the same user is logging in in two different locations and bring down the older login? Example: I’m logged in to the PHP system that uses…
-
1
votes1
answer82
viewsPHP and Javascript - Selected checkbox value storage (in Session)
I have on my page some options in checkboxes. They would be campaign options. Follow the code of the table where they are available (lines of three): <table style="font-family: Trebuchet MS;…
-
1
votes1
answer500
viewsFlash Session does not work, Laravel 5.1
I’ve done this several times but for some reason now it’s not working, I can’t grab the flash from the view session Userscontroller: public function login_page(Request $request) { $title = "login";…
-
1
votes1
answer573
viewsPHP: passing session variables from one domain to another domain
We have two projects hosted in different domains. I need to pass some information from one domain to the other, to generate a ticket. I was asked to send session variables to this other domain for…
-
1
votes1
answer667
viewsKeep database connection open in PHP
When using a PHP application with Firebird database we use the methods ibase_connect() to open the connection to the database and ibase_close() to close that connection. If the connection is opened…
-
1
votes1
answer67
viewsSession library for Nodejs/Hapijs?
I’m making an email application and I got to the part where I need to do the session and login part, but I’ve never done this before, I’m using Hapijs as a server and I’d like to know which are the…
-
1
votes1
answer691
viewsProblem with Codeigniter error session
I have a small login problem with codeigniter, after logging in it does not transfer the data by session. I took the following test: I printed the session in the controler [ok, printed correct data]…
-
1
votes1
answer113
viewsWhy are the data disappearing by refreshing this page?
While I wear that filter for real estate, everything goes well but at the time I refresh the page, the checkbox makes the search disappear. It undoes all the session or at least gives an error in…
-
1
votes1
answer172
viewsHow to configure the correct Codeigniter session in the current version of it?
Well, to be more specific, my problem with Codeigniter sessions started to occur after I switched my Xampp to a more current version (v.7...). When it comes to code/project I didn’t do if you want…
-
1
votes1
answer624
viewsChange variable value of Orange Session
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…
-
1
votes1
answer74
viewsIs it usual to deal with sessions on an Android app?
My question is the following: I have a Rails server and make queries on this server using an Android app. If I were creating a web system, I would make use of session to manage my system…
-
1
votes1
answer365
viewssession_id PHP and mysql
I’m doing a shopping cart simulation with PHP and Mysql. I need to store a session_id or any user session identification, for when it leaves I remove the data that it stored in the database. I…
-
1
votes0
answers831
viewsSession in php is lost after changing page
I’m having serious problems need to deploy a php script that I made on a centos server that I installed. Apparently everything ok. Until the time to login. it logs but goes back to login screen and…
-
1
votes0
answers1093
viewsSession at Node.JS
I was reading that the middleware Express Session it is not ideal to work in production, because it archives the sessions in memory. I also read that storing session data in memory is not a good…
-
1
votes1
answer163
views -
1
votes0
answers124
viewsJava Session, Jsessionid changes
I have a web page that requests a Servlet via Ajax. In Servlet I create a Session to keep the employee authenticated and to identify him within the system. However, when I leave the system, I put…
-
1
votes0
answers42
viewsWhy does the PHP session not work if I already have a variable in the super global $_SESSION?
I have the following code in the file config.php: <?php if(session_status() != PHP_SESSION_ACTIVE ) { session_start(); } $_SESSION['id_sessao'] = session_id(); ... It turns out that when I send…
-
1
votes1
answer816
viewsPHP and Javascript - Automating one page printing function from another page
My site has a query screen of registered events. For each one, I have the option of Edit Event that redirects me to a form: function editaEvento(val){ var valor = val; location.href =…
-
1
votes2
answers120
viewsSession Codeigniter PHP
I have two different systems. Both created with codeigniter. The problem is this: Do logon in the 1 system and I use normally, then I open the 2 system, and then it occurs that the Session of that…
-
1
votes1
answer292
viewsDisplay username logged in with Codeigniter
How do I display the username logged in to the system? The function that authenticates and creates the session is this: function verificar() { $this->load->model('tbdaluno'); $check =…
-
1
votes1
answer69
viewsKill ORACLE session 12c
good morning. I would like to run a command to kill sessions on ORACLE 12C but the only command I know is ALTER SYSTEM KILL SESSION 'sid, serial, @instancia' IMMEDIATE; But I wanted to kill specific…
-
1
votes1
answer1025
viewsHow do I sign in to a PHP server to login to a separate application (HTML + JS) using Ajax?
I’m making a Hybrid app with Phonegap (using HTML5, CSS and JS only - jQuery and Jquery Mobile). For this, I have the application itself, which can not use PHP, and a server apart that takes care of…
-
1
votes1
answer92
viewsPHP displays error "Failed to write Session data" at random times
I have a website that is fully functional and the failure rate is 0.0037%, however all errors are the same. Unknown: Failed to write session data (files). Please verify that the current setting of…
-
1
votes1
answer88
viewsphp session is broken when soon on two sites on the same apache server
I have two sites that perform user authentication and soon after create a session for the same, the two sites access the same database and therefore the user structure returned by the instruction:…
-
1
votes0
answers49
viewsUser logging into other accounts
Hi, I’m in the middle of this because I don’t know what else to do with this problem that’s been haunting me for days! Yesterday practically out of the blue (really, out of the blue) started this…
-
1
votes1
answer353
viewsWhen login appears a message
Hi, I was wondering how to do for when the user logs in, a message contained in this code appears: <div class="alert alert-success" role="alert"> <strong>Login realizado com sucesso,…
-
1
votes1
answer207
viewsCodeigniter: Session recreated after page reload
I have a system where a session is created for the user after their login, the problem is that each access I make to the site a new session is created and the recorded data is deleted, I set the…
-
1
votes1
answer579
viewsHow to display the recovered String value of the JSF session?
I am facing a problem when trying to display, in xhtml, a String value recovered from session. What I want is to show the value of a String attribute (attribute name) of an object of the class I…
-
1
votes1
answer572
viewsSet a session variable by clicking a link
I have a dropdown list, which allows you to choose the year that will be used in the database search. I would like the user to select one of these dates, set a session variable with the value of the…
-
1
votes1
answer2837
viewsVariables $_SESSION reset after reloading PHP page
Hello. I’m trying to perform a very simple login system with Session and I’m not able to keep the $_SESSION variables saved, because they get lost every time you have Reload on the page. My…