Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Valid CSRF Token Required" in Osticket After login?

Tags:

php

osticket

My osTicket Version 1.10 is installed in PLESK Windows Server. I have tried to install XAMPP on the PLESK Windows Server but not able to start XAMPP .

Soon I get error after login to osTicket "Valid CSRF Token Required in Osticket After login" which was earlier working fine

After login I get this error:

enter image description here

like image 693
Amit Kandwal Avatar asked Dec 18 '22 10:12

Amit Kandwal


1 Answers

in include/class.ostsession.php

Just add this line:

$this->data->session_data = "";

After:

catch (DoesNotExist $e) {
        $this->data = new SessionData(['session_id' => $id]);

So it will be:

catch (DoesNotExist $e) {
        $this->data = new SessionData(['session_id' => $id]);
        $this->data->session_data = "";

Then try to login from scratch, don't just refresh the submission.

like image 168
CairoCoder Avatar answered Jan 07 '23 10:01

CairoCoder