Is it possible to get data into a session without being able to write?

Yes, it is possible to get data into a session without being able to write by using the $_SESSION superglobal array. You can store data in the session by assigning values to keys in the $_SESSION array. This allows you to retrieve and use the data throughout the session without needing to write directly to the session file.

<?php
session_start();

// Get data into the session without writing
$_SESSION['data'] = 'example data';

// Retrieve data from the session
$data = $_SESSION['data'];

echo $data; // Output: example data
?>