Current Session
Session data is stored server-side and persists across page requests.
| Key | Value |
|---|---|
| lang | EN |
| page | home |
HTTP Methods & SESSION
Understanding GET, POST & SESSION
What are Sessions?
Sessions allow storing user-specific data server-side that persists across multiple page requests. They are essential for personalized web applications.
🔄 GET
GET transmits data as URL parameters. They are visible in the browser and can be bookmarked.
- Daten in URL sichtbar
- Für Bookmarks geeignet
- Max. ~2000 Zeichen
📨 POST
POST sends data in the request body. They are not visible in the URL and are suitable for forms and sensitive data.
- Daten versteckt im Body
- Sicherer für Passwörter
- Keine Längenbeschränkung
💾 SESSION
Session data is stored server-side and persists across page requests.
- Daten auf Server gespeichert
- Über Seitenaufrufe erhalten
- Für Login, Warenkorb, etc.
Practical Applications:
Login System
Log users in and maintain status across pages
Shopping Cart
Store items in cart between pages
User Preferences
Save language, theme or other preferences
💡 This demo shows fundamental web concepts: GET (data in URL), POST (hidden data), SESSION (server-side storage). In practice, they are combined.