PHP Login session with cookie

Please take a look at this code. Is it possible to use it to register the user through cookies if (isset($_COOKIE[‘rand_nm’]) && isset($_COOKIE[‘token’])) { $…

How do I store multiple similar data in a session array in PHP?

I would like to be able to submit multiple times and store the data in a session array to be accessed in other server pages. I’n not sure how to do it. &…

How to change the quantity of the product if removed in PHP?

I have a form where I am inserting personal data and images. The user can add more than one image. Now when the user submits the form then I am inserting the data and images in the temporary table and …

Updating value in array updates all values with the last inserted value PHP

I have two arrays, one with quantities called aantal and one with products called producten. Producten: Array ( [0] => Array ( [0] => 2 [1] => Tegel …

codeigniter oc_ prefex database problem in server

i have created a website in codeignter, the website is working fine my local, i uploaded it to my server, then its showing the following error: Table ‘kirana_btp_new.oc_ci_sessions’ doesn’t exist …

How to get the index of an array of sessions? – cakephp

Friends, I have an array where I need to get the index dynamically to be able to delete the specific session. enter image description here I tried to link the delete button like this in cart.ctp: …

PHP session cookie not extending timeout on activity

Scenario User visits at 2:00:00PM and a session is assigned that will expire in 30 minutes. User continues activity with requests to the server for 30+ minutes. User’s session expires at 2:30:00PM (…

Multiple php requests simultaneously, second request doesn’t start until first finishes

I’ve got a long running php 7.2 script that is producing a zip file. I want to use a looping ajax call to check on the progress of building the zip file. The second script appears to be locked and …

Session in While Loop PHP

How to create a $_SESSION from an array index?

I am doing a login system and I want to show a welcome message when the user is validated. I explain. This is the database: The user when is logging in uses the username but I want in the welcome …