3,839 questions
-3
votes
1
answer
235
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 ...
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. ...
-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'] = "...
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 ...
0
votes
1
answer
71
views
Flask session variable not persisting between Ajax requests
In my Flask app, I'm trying to display the progress of a backend task to the client. The client sends an initial request which begins the task. The task contains a loop, and as it iterates, it updates ...
1
vote
1
answer
44
views
Passing session variable from list php
I am having a major issue passing session variables via link from a list of options.
Having searched through numerous posts I havent seen anything that is of help.
So here is a sample of the code.
...
2
votes
0
answers
89
views
Set WooCommerce billing country based on WPML current language
I am using the following code to change WooCommerce billing country to the selected site language.
add_filter('init', function() {
$lang = apply_filters( 'wpml_current_language', NULL );
$...
0
votes
2
answers
53
views
ASP.NET session variables not being retained
I have two web forms in ASP.net. In the first page is set a session variable like so:
HttpContext.Current.Session("myTestVariable") = "ABCD"
On the second page I try to read the ...
1
vote
0
answers
37
views
My counter is edited correctly when a button is clicked but this new value is not saved for the next action
When a button is clicked my counter should be lowered by 1 or 2 depending on the clicked button. This works the first time but when a button is clicked again the original value of my counter is used ...
0
votes
1
answer
54
views
Session Not Stored In Express
I am creating a React app with Express as the backend and using MongoStore to store the session data. When I log in to Cloud Mongo in Atlas, I can see a session being created and my variable is stored....
1
vote
1
answer
282
views
Laravel 11.9 Flash Sessioned Data Not Passing Message
I am trying to set a custom message when a user session has timed out. I managed to setup the timeout rerouting, but I struggle to include a message to notify the user. Here's part of the code that I ...
0
votes
1
answer
114
views
Flask session variable not saving within generator function
I need to save chat history for an LLM in a session variable to avoid having to do it in a data-table per user. A session variable would just work wonderfully here. However, I have a generator ...
0
votes
2
answers
71
views
Login session not accessible other than redirected page
This is my login.php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST['username'];
$password = $_POST['password'];
$stmt = $conn->prepare("SELECT ...
-1
votes
1
answer
596
views
PHP sessions not working properly in Codeigniter 4
PHP session are not working properly. Values in the session are first stored in get_values_from_email(). But I cannot see the values of the var_dump($this->session->get()) inside the function ...
1
vote
0
answers
25
views
session_id saved in session_store is different to request.session[:session_id] [duplicate]
Ruby 3.2.4, Rails 7.1.3.2, Postgres 14, Ubuntu 22.04.
gem 'activerecord-session_store'
initializer is as follows
Rails.application.config.session_store :active_record_store, :key => '...
0
votes
0
answers
28
views
Session variables are not saved / Session get destroyed - in SiteGround [duplicate]
I implemented a management site in PHP where access to the ID is saved in a session variable ($_SESSION['user']). Still, after I was redirected to another page with a header, the session variable ...
1
vote
1
answer
111
views
Get Sessions variables/connection to stay connected for 24 hours instead of 24 minutes in PHP
I am working on a new website using PHP/MariaDB.
I implanted facebook login with this tutorial (https://codeshack.io/implement-facebook-login-php/) and it works great. I am now fully approved on ...
0
votes
0
answers
69
views
ASP.NET Session variable data lost randomly for random users
I have a web application created using .Net Framework 4.6.1. Recently, I started getting complaints from users that they were redirected to the login page. It only happens when session data is not ...
0
votes
0
answers
158
views
How to link Stripe session with my own web app session
I have the following setup: a very simple web app written with Node & Express.
There is a simple index.html page that only contains a Stripe Payment link, as shown below:
<!DOCTYPE html>
<...
0
votes
1
answer
148
views
Creating a game in Flask / Print the values of a while loop in different html pages
For a project, I'm currently trying to create a game (a variation of the Hangman) in python using Flask to make it accessible on an html page. This game is destined to be used by deaf children to ...
-2
votes
1
answer
83
views
How do I reload an html page to make changes visible after a user logs in?
Edited: I didn't understand the nature of the problem earlier
If I use javascript functions with page display changes from block to none and vice versa for redirecting between pages, how do I update ...
0
votes
0
answers
18
views
$_SESSION variable in php is not incrementing according to the condition [duplicate]
This a code snippet of my project, an ecommerce store. I have created a javascript event to increment the quantity of product. The quantity of product is increasing accordingly but the value of my $...
0
votes
2
answers
64
views
Does PHP reinitialize session variables when visiting a page in another tab?
I am building a simple website in PHP 8.0.30 where after the user logs in successfully, specific values are added to the $_SESSION, including their last time of access as follows:
index.php
<?php
...
1
vote
1
answer
417
views
Add fees based on custom selected options in WooCommerce Cart page
I've added some checkboxes to my cart page which give the customers the opportunity to add extra items to their order.
This is based on Custom checkbox that adds a fee in WooCommerce cart page answer ...
-2
votes
1
answer
113
views
Cannot rollback user-defined variables in MySQL
First, I set John to the user-defined variable @name as shown below:
SET @name = 'John';
Then, I set David to @name in a transaction, then rollbacked as shown below:
BEGIN;
SET @name = 'David';
...
0
votes
2
answers
155
views
Set variable to an expired session out of a view in Django
I’m trying to set a variable to an expired session out of a view in Django.
I’m aware of django’s documentation on Using sessions out of views. But in my case, I try to set a session variable in a ...
0
votes
0
answers
36
views
In flask, can I not name a session variable using another varible?
Im trying to do:
@app.route("/process_page_data/<page>", methods=["POST"])
def process_page_data(page):
print(f"\n process {page} data... \n")
session[f&...
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
1
answer
77
views
Express.js not saving session data
I am building a web app and I would like to assign every client a random user ID (which should be retained across sessions). For this, I am setting the userId session variable.
const app = express()
...
0
votes
1
answer
929
views
How to store an int userId in asp.net core razor website
Seriously struggling to have a decent solution to access an int userId value across multiple pages
So I am not an expert. Just when you feel competent a problem like this comes along.
I have a asp.net ...
0
votes
0
answers
117
views
Supervisor (superuser) approval of root superuser login in Django
In my Django project with two superusers called root and supervisor, I'm trying to implement the following flow:
When root logs into the application, he is directed to a 'waiting for authorisation' ...
1
vote
1
answer
79
views
How can I redirect users to different pages based on session in PHP?
im trying after put username and password redirect to other page named panel.php but after the put currect values in form destination page redirect me again to login form. my login code ->
<?php
...
0
votes
0
answers
99
views
SQL Array and session variable [duplicate]
I have an array in a PostGreSQL query and I can't turn it into a session variable.
The table resulting from the query sends this: {1,2,3}
if I transform this into a session variable I have the same ...
0
votes
0
answers
169
views
How to store Power BI session data without Localstorage?
I am developing a custom Power BI visual. In my use case, the visual need to authenticate the users to a third party server with the Oauth2 protocol. When opening the report, every user should have a ...
0
votes
1
answer
104
views
How to read Gmails using the api?
so I was able to put a code together that allows me to retrieve unread messages from last 48 hours , thanks to @LindaLawton-DaImTo.
here, I'm having problems to prettify the output (which is in a html ...
0
votes
1
answer
69
views
Use session_set_cookie_params or session_start options
Where should session cookies options go? in session_start or session_set_cookie_params?
The documentation at php.net is a bit unclear one these as they don't mention session_set_cookie_params. Are the ...
0
votes
1
answer
487
views
Can't access session variable even with session_start()
I have trouble accessing my session variable from one page to another. When I access the response from the page that sets the session variable as a regular JSON response, I can confirm that the ...
0
votes
0
answers
59
views
Access to another page by only clicking on the link and preventing page access by entering url in browser
Is it possible to redirect a user back to 1st Page if they directly try to access the 2nd Page by entering the url on the browser and not the given link on 1st Page.
I have a link which I need the ...
0
votes
2
answers
174
views
DataTable row indexes do no match the order when bound to Gridview
I have a Gridview with different items, ordered by the integer column "Order". I am saving the DataTable that feeds the Gridview as "Session Parameter".
Item Order ...
0
votes
0
answers
42
views
Block PHP Webpage except through Redirect from PHP webpage using Session Variables
I am trying to block access to my webpage except it is accessed via a successful button click on a verification page.
The backend of the verification has been handled and it works as expected. I ...
0
votes
1
answer
882
views
Temporary table or View with session variables, which one to use and why?
I am new to Snowflake. I have a basic question. I have a large dataset that I need to use in a join with other tables.
*Should I use a temporary table, or a view with session variables for this ...
0
votes
0
answers
141
views
Spring Session results in spam: ORA-00942: table or view does not exist
I'm new to Spring and Java. I'm trying to setup session management using Sprint Session but I'm getting error spam on the server. I followed this guide:
https://www.javainuse.com/spring/...
2
votes
1
answer
281
views
Custom Session Handler With JSON in PHP Destroy Session by Mistake
I have a task to implement my Custom Session Handler in PHP, where data from each session is saved in a specified directory in a JSON Text file.
Here is the code (it's a combination of code from ...
0
votes
2
answers
49
views
Session value not working in SelectCommand of SqlDataSource for DetailsView
i have a webapplication in .net and use a DetailsView.
im control this DetailsView with a SqlDataSource. i set a session with jquery.
<script >
var baseUrl = (window.location).href;...
0
votes
1
answer
649
views
Update prices for shipping methods dynamically in WooCommerce
I am trying to update the shipping prices for my shipping methods dynamically. I get the shipping costs from an API and I want to update the prices when the I successfully get the prices from the API ...
1
vote
1
answer
3k
views
Using session storage on Flutter web
The libraries I have seen and use allow to store on local storage, but is there a way to store data easily on session storage with Flutter?
Thank you.
-1
votes
1
answer
56
views
Why can't I see the session variables set previously?
I have two processes. The first (#1) sets some session variables and also creates a cookie with the session_id in it. The second (#2)reads the cookie and runs this code:
session_id($_COOKIE['...