# cookie

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/cookie
- **Çeviri tarihi:** 2025-09-08

## cookie kütüphanesi

Kullanıcının bilgisayarında verileri kalıcı hale getirmek için fonksiyonlar.

Veriler, kütüphanenin kullanıldığı realm'e karşılık gelen bir veritabanından okunacak / veritabanına yazılacaktır.

| Realm | Veritabanı Dosyası |
|---|---|
| [Sunucu](https://gmod.tr/wiki/States#server) | `garrysmod/sv.db` |
| [İstemci](https://gmod.tr/wiki/States#client) | `garrysmod/cl.db` |
| [Menü](https://gmod.tr/wiki/States#menu) | `garrysmod/mn.db` |

## Metotlar

cookie.[Delete](https://gmod.tr/wiki/cookie.Delete)( [string](https://gmod.tr/wiki/string) key )

Belirtilen ada sahip herhangi bir çerezi kaldırır. Çerez mevcut değilse hiçbir şey yapmaz.

[number](https://gmod.tr/wiki/number) cookie.[GetNumber](https://gmod.tr/wiki/cookie.GetNumber)( [string](https://gmod.tr/wiki/string) name, [any](https://gmod.tr/wiki/any) default = nil )

İstemcideki bir çerezin değerini sayı olarak alır.

[string](https://gmod.tr/wiki/string) cookie.[GetString](https://gmod.tr/wiki/cookie.GetString)( [string](https://gmod.tr/wiki/string) name, [any](https://gmod.tr/wiki/any) default = nil )

İstemcideki bir çerezin değerini metin (string) olarak alır.

cookie.[Set](https://gmod.tr/wiki/cookie.Set)( [string](https://gmod.tr/wiki/string) key, [string](https://gmod.tr/wiki/string) value )

Veritabanında bir çerez oluşturur / günceller.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/cookie
