Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
235 views

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 ...
Manngo's user avatar
  • 17k
0 votes
0 answers
22 views

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. ...
tzvishmuel's user avatar
-1 votes
1 answer
124 views

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 $...
Keven M's user avatar
  • 990
2 votes
1 answer
103 views

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 ...
Boris's user avatar
  • 45
2 votes
2 answers
46 views

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'] = "...
Abb's user avatar
  • 67
0 votes
0 answers
27 views

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 ...
Rishabh's user avatar
  • 187
0 votes
1 answer
58 views

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 ...
User27's user avatar
  • 545
0 votes
1 answer
71 views

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 ...
Neckroll the 70th's user avatar
1 vote
1 answer
44 views

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. ...
Ian Young's user avatar
2 votes
0 answers
89 views

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 ); $...
Nathan Otten's user avatar
0 votes
2 answers
53 views

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 ...
Herman Badenhorst's user avatar
1 vote
0 answers
37 views

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 ...
Kara's user avatar
  • 11
0 votes
1 answer
54 views

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....
Arogya's user avatar
  • 3
1 vote
1 answer
282 views

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 ...
Derrick's user avatar
  • 49
0 votes
1 answer
114 views

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 ...
Jami Bailey's user avatar
0 votes
2 answers
71 views

This is my login.php if ($_SERVER["REQUEST_METHOD"] == "POST") { $username = $_POST['username']; $password = $_POST['password']; $stmt = $conn->prepare("SELECT ...
Asad Khrd's user avatar
-1 votes
1 answer
596 views

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 ...
Adrian L Perez's user avatar
1 vote
0 answers
25 views

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 => '...
David's user avatar
  • 123
0 votes
0 answers
28 views

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 ...
Leonardo Vianello's user avatar
1 vote
1 answer
111 views

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 ...
Alex Vio's user avatar
0 votes
0 answers
69 views

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 ...
Brijesh Gandhi's user avatar
0 votes
0 answers
158 views

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> <...
marius's user avatar
  • 71
0 votes
1 answer
148 views

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 ...
Kehina Manseri's user avatar
-2 votes
1 answer
83 views

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 ...
Marina Gurova's user avatar
0 votes
0 answers
18 views

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 $...
Muhammad Hassan's user avatar
0 votes
2 answers
64 views

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 ...
Khanjan Desai's user avatar
1 vote
1 answer
417 views

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 ...
JWCreative's user avatar
-2 votes
1 answer
113 views

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'; ...
Super Kai - Kazuya Ito's user avatar
0 votes
2 answers
155 views

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 ...
Zatigem's user avatar
  • 363
0 votes
0 answers
36 views

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&...
Sammyul Haque's user avatar
1 vote
0 answers
46 views

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 ...
Sam's user avatar
  • 1,940
0 votes
1 answer
77 views

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() ...
Wais Kamal's user avatar
  • 6,250
0 votes
1 answer
929 views

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 ...
user14554500's user avatar
0 votes
0 answers
117 views

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' ...
Kuchiki Byakuya's user avatar
1 vote
1 answer
79 views

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 ...
mohammad safari's user avatar
0 votes
0 answers
99 views

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 ...
Sylvain's user avatar
  • 51
0 votes
0 answers
169 views

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 ...
Pietro's user avatar
  • 27
0 votes
1 answer
104 views

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 ...
Jaswanth's user avatar
0 votes
1 answer
69 views

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 ...
theking2's user avatar
  • 3,100
0 votes
1 answer
487 views

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 ...
Dumebi 's user avatar
0 votes
0 answers
59 views

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 ...
Septiana Fajrin's user avatar
0 votes
2 answers
174 views

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 ...
Barnabeck's user avatar
  • 481
0 votes
0 answers
42 views

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 ...
Dumebi 's user avatar
0 votes
1 answer
882 views

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 ...
ARPAN BANERJEE's user avatar
0 votes
0 answers
141 views

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/...
Kmus's user avatar
  • 53
2 votes
1 answer
281 views

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 ...
Alexei Bobrik's user avatar
0 votes
2 answers
49 views

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;...
simo's user avatar
  • 7
0 votes
1 answer
649 views

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 ...
AD1TYA's user avatar
  • 93
1 vote
1 answer
3k views

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.
user3808307's user avatar
  • 1,067
-1 votes
1 answer
56 views

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['...
richie's user avatar
  • 51

1
2 3 4 5
77