3,839 questions
11 votes
8 answers
26k views
How can I check to see if the user is anonymous or logged in from javascript?
I would like to determine whether or not the user is logged in or if they're just anonymous from javascript... I found this question, but it's php code and I wasn't sure if there is a session ...
-3 votes
1 answer
236 views
Setting SESSION data in a CURL request
I have a PHP script to be used as an Ajax responder, which I want to remember a previous call. I thought that it should be able to remember using $_SESSION data. I’ve simplified it down to a pair of ...
11 votes
1 answer
19k views
how to prevent websites from log you out due to inactivity
I made a browser extension: reloads the page. open another tab from the same host and close it automatically. switch tabs to be active automatically (every 2 minutes one of these sites becomes active)...
1 vote
1 answer
43 views
Is it safe to verify a form with the superglobal $_SESSION variable?
I have a form and when I submit it, I do an AJAX call to my server. On the server-side, I verify the informations by comparing them with some variables in the superglobal $_SESSION like below : ...
1 vote
0 answers
46 views
Missing Session variable in ASP.NET MVC 4
I encountered a missing Session problem. After days of investigation, I found out the Session is missing when it tries to call AJAX post trigger by SignalR from localhost. I have a local Windows ...
0 votes
0 answers
22 views
Joomla 3.9 updating Session variables logs off user
We want to add an API call when we load a page to get an external value, which will be added to our session variables. However, after we do that, logged-in users find that they have been logged out. ...
0 votes
1 answer
440 views
IIS Does Session State persist across different applications (InProc)
I have to different ASP.NET applications (same version) running on the same IIS Server and I have Sessions running In Process. Will the session state/variables persist across the two applications? I ...
-1 votes
1 answer
124 views
$_SESSION array not being populated [closed]
I've been learning PHP over the past week, following a few tutorials and then expanding those ideas with my own. For the most part everything has gone well, but I'm running into a problem with the $...
2 votes
1 answer
103 views
Dynamic fees calculated from custom checkout fields in WooCommerce
I have a WooCommerce store specialized in renting out beach equipment. I added a dropdown menu to the checkout page where a customer can select for the order to be delivered or that they can pick it ...
2 votes
2 answers
46 views
When one script creates multiple XHRs to the same PHP file, are you creating multiple sessions or just one session?
Apologies if this seems like a repeat question but I'm having a different doubt now. Basically I have a PHP file that is set up like this: <?php session_start(); $_SESSION['globalVar'] = "...
19 votes
1 answer
12k views
ASP.NET MVC Unit Testing - Sessions
Having searched StackOverflow, and Google I think what I'm doing is suppose to be right, however results don't seem to be going well [TestMethod] public void ...
25 votes
3 answers
35k views
Where are session variables stored in Rails?
hard disk, main memory or somewhere else. I am not asking for the case where these are stored in database.
46 votes
5 answers
44k views
Session variable value is getting null in ASP.NET Core
I am setting a session variable in one method and trying to get the session variable value from the another method in a controller but its always getting null: Here is my code: public class ...
0 votes
0 answers
27 views
Sharing ci_session between two applications, one built with CodeIgniter and the other with React and Node.js
We are unable to get ci_session in React with a Node.js application from the CodeIgniter application. We currently have a running CodeIgniter portal and want to revamp a single page with React and ...
0 votes
1 answer
58 views
ASP.net variable to hold the value between multiple http requests
What variable should be used to persist its value during multiple http requests? I am working on a system built in ASP.NET where I need to get data from one http request process it and pass it to the ...