Problem with php session in brave

hello, can someone teach me why this php example script work in all other browser but not in brave?

session_set_cookie_params(10);
session_start();

$counterstand = intval(file_get_contents(“counter.txt”));

if(!isset($_SESSION[‘counter_ip’]))
{
$counterstand++;
file_put_contents(“counter.txt”, $counterstand);

$_SESSION[‘counter_ip’] = true;
}

echo $counterstand;

1 Like

php work in brave browser i personally use brave for run php script

I don’t think it’s a Brave issue :thinking:

this script work in brave 1 times after open browser, than nothing happend

in chrome it work all 10 seconds until browser is open.
i dont understand the problem between 2 browsers

i created a 3sec testfile LINK
test it with chrome and after with brave
cant be testet about 2 hours.

testet all browser i have:
dont work destop brave/mozilla firefox, work with chrome

and work all with same 3 browsers at ios smartphone

dekstop brave dosent delete PHPSESSID when close the browser

thats why example script dont work

is there an option that destop brave browser is still runing in background when its closed?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.