How can I resolve a critical section runtime error with PHP sessions in WordPress?

300 views Asked by At

A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.please help how to resolve this problem I m getting this notification in my WordPress dashboard.

1

There are 1 answers

0
O. Jones On

You cannot use php sessions in the WordPress environment. They are incompatible, as WordPress manages its own session data.