SessionHandlerInterface::read

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

SessionHandlerInterface::readRead session data

Beschreibung

public SessionHandlerInterface::read(string $id): string|false

Reads the session data from the session storage, and returns the results. Called right after the session starts or when session_start() is called. Please note that before this method is called SessionHandlerInterface::open() is invoked.

This method is called by PHP itself when the session is started. This method should retrieve the session data from storage by the session ID provided. The string returned by this method must be in the same serialized format as when originally passed to the SessionHandlerInterface::write() If the record was not found, return false.

The data returned by this method will be decoded internally by PHP using the unserialization method specified in session.serialize_handler. The resulting data will be used to populate the $_SESSION superglobal.

Note that the serialization scheme is not the same as unserialize() and can be accessed by session_decode().

Parameter-Liste

id

The session id.

Rückgabewerte

Returns an encoded string of the read data. If nothing was read, it must return false. Note this value is returned internally to PHP for processing.

Siehe auch

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

PHPMailer Umlaute Probleme

Ah, das ist ein klassisches Thema: Umlaute (ä, ö, ü, ß) und PHPMailer. Probleme entstehen oft, wenn Zeichencodierung oder Header nicht korrekt ...

Geschrieben von smashkarts am 04.09.2025 07:16:16
Forum: PHP Developer Forum
[Wichtig] Anmeldung im Forum

Geometry Dash has become a renowned name in the world of fast-paced platformer games, capturing the hearts of gamers across the globe. This colorf ...

Geschrieben von fangfitaeraki am 04.09.2025 05:28:36
Forum: Fragen/Vorschläge zum Forum
Why Geometry Dash Remains Timeless

Geometry Dash: A Comprehensive Guide to the Rhythm-Based Platformer Caption: Geometry Dash Image at the Beginning – Jump into the rhythm-bas ...

Geschrieben von fangfitaeraki am 04.09.2025 05:21:51
Forum: Ankündigungen
Probleme mit speichern in Datenbank in französisch

It sounds like you're facing encoding issues when inserting data, especially French text with apostrophes. This is a common problem, kind of like ...

Geschrieben von Rodriguezin89 am 04.09.2025 04:58:20
Forum: PHP Developer Forum