# Panel:GetCookie

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Panel:GetCookie
- **Çeviri tarihi:** 2025-09-08

```lua
string Panel:GetCookie( string cookieName, string default )
```

## Açıklama

Panel nesnesi tarafından saklanan bir çerezin (cookie) değerini alır. Bu işlem ayrıca, panelin çerez adını, bir nokta işaretini ve ardından çerezin gerçek adını kullanarak [cookie.GetString](https://gmod.tr/wiki/cookie.GetString) ile de yapılabilir.

Yazıldıktan sonra panelin çerez adının değişmediğinden emin olun, aksi takdirde çereze erişilemez. Bu işlem [Panel:GetCookieName](https://gmod.tr/wiki/Panel:GetCookieName) ve [Panel:SetCookieName](https://gmod.tr/wiki/Panel:SetCookieName) ile yapılabilir.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **cookieName**: Değerin alınacağı çerezin adı.
2. [string](https://gmod.tr/wiki/string) **default**: Çerez mevcut değilse döndürülecek varsayılan değer.

## Döndürülen Değer

1. [string](https://gmod.tr/wiki/string): Saklanan çerezin değeri veya çerez mevcut değilse varsayılan değer.

- [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/Panel:GetCookie
