SessionHandler::read

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

SessionHandler::readRead session data

Beschreibung

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

Reads the session data from the session storage, and returns the result back to PHP for internal processing. This method is called automatically by PHP when a session is started (either automatically or explicitly with session_start() and is preceded by an internal call to the SessionHandler::open().

This method wraps the internal PHP save handler defined in the session.save_handler ini setting that was set before this handler was set by session_set_save_handler().

If this class is extended by inheritance, calling the parent read method will invoke the wrapper for this method and therefore invoke the associated internal callback. This allows the method to be overridden and or intercepted and filtered (for example, decrypting $data value returned by the parent read method).

For more information on what this method is expected to do, please refer to the documentation at SessionHandlerInterface::read().

Parameter-Liste

id

The session id to read data for.

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