Definitionپێناسە
A way to recognise one user across many pages, with the data kept on the . PHP gives the browser a in a cookie and keeps the user's data in $_SESSION. Call session_start() at the top of every page that uses it.
ڕێگایەکە بۆ ناسینەوەی بەکارهێنەرێک لە چەندین لاپەڕەدا و دراوەکانی لەسەر هەڵدەگیرێن. PHP لە کووکییەکدا دەدات بە تۆڕگەڕەکە و زانیارییەکانی بەکارهێنەر لە $_SESSIONدا هەڵدەگرێت. لە سەرەتای هەر لاپەڕەیەک کە بەکاری دەهێنێت session_start() بانگ بکە.
Exampleنموونە
Store the username once, then read it on every page.
ناوی بەکارهێنەر یەک جار خەزن بکە، پاشان لە هەموو لاپەڕەیەکدا بیخوێنەرەوە.
<?php
session_start();
$_SESSION['username'] = 'shilan';
// on any other page, after session_start():
echo 'Hello ' . htmlspecialchars($_SESSION['username']);Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
دانیشتن، سێشنەکە، سێشنەکان، سێشنێک، سێشنی، سێشنەکانی، سێشنێکی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
سێشن is the loanword students use; دانیشتن (a sitting, as of a meeting) is sometimes suggested but is not used in IT.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- Sessionsسێشنەکان
- A Login System with Sessionsسیستەمی چوونەژوورەوە بە سێشن
- HTTP and the Request–Response CycleHTTP و سووڕی داواکاری و وەڵام
- Course review and practiceپێداچوونەوە و ڕاهێنانی کۆرسەکە
- PHP Superglobalsسووپەرگلۆباڵەکانی PHP
- Malware Today: Infostealers, Banking Trojans, RATs, Cryptojacking and Moreنەرمەواڵەی زیانبەخشی ئەمڕۆ: نەرمەواڵە زانیاریدزەکان، ئەسپەکانی ترۆیای بانکی، RAT، کریپتۆجاکینگ و زیاتر
- Cookiesکووکییەکان
- NoSQL and Big DataNoSQL و دراوەی گەورە
- Building a CRUD Application with PHP and MySQLدروستکردنی بەرنامەیەکی CRUD بە PHP و MySQL
- Building a Security Cultureبونیادنانی کولتووری ئاسایش
- Introduction to PHPسەرەتایەک بۆ PHP
- Injection Attacks: SQL Injection and Cross-Site Scriptingهێرشەکانی تێخزاندن: تێخزاندنی SQL و XSS
- Variablesگۆڕاوەکان
- Redirects: Sending the Browser Somewhere Elseئاڕاستەکردنەوە: ناردنی تۆڕگەڕ بۆ شوێنێکی تر
- Form Security and Sticky Formsئاسایشی فۆرم و فۆرمە لکاوەکان
- Transactions and ACIDمامەڵەکان و ACID
- Security by Obscurity, by Legislation, and the Trade-off Triangleئاسایش بە شاردنەوە، ئاسایش بە یاسا و سێگۆشەی هاوسەنگی
- Finding and Rating Vulnerabilities: Scanning, OWASP and CVSSدۆزینەوە و هەڵسەنگاندنی خاڵە لاوازەکان: پشکنین، OWASP و CVSS