1. Glossaryفەرهەنگی زاراوەکان
HttpOnly
Established Kurdish termزاراوەی کوردیی جێگیر

Definitionپێناسە

A cookie option that stops from reading the cookie, so an attack cannot steal it. In PHP you set 'httponly' => true in the options array of setcookie().

بژاردەیەکی کووکییە کە ڕێگە نادات کووکییەکە بخوێنێتەوە، بۆیە هێرشی ناتوانێت بیدزێت. لە PHPـدا لە ڕیزەکی بژاردەکانی setcookie()دا 'httponly' => true دادەنرێت.

Exampleنموونە

A safer cookie: hidden from JavaScript and sent only over HTTPS.

کووکییەکی پارێزراوتر: لە JavaScript شاراوەیە و تەنها بە HTTPS دەنێردرێت.

<?php
setcookie('token', $token, [
    'expires'  => time() + 3600,
    'httponly' => true,
    'secure'   => true,
    'samesite' => 'Lax',
]);

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

26 | Session Security Basics in PHP for Beginners | 2023 | Learn PHP Full Course For BeginnersDani Krossing · Englishئینگلیزی · 49K viewsبینین · 1.3K likesلایک · Partبەشی 8:19–11:07 (ofلە 16:32)

Learn more inزیاتر فێربە لە