A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 113

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 280

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 145

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 223

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 303

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 344

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 281

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 293

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 303

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 313

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 314

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 315

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 316

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 107

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 140

A PHP Error was encountered

Severity: 8192

Message: setcookie(): Passing null to parameter #7 ($httponly) of type bool is deprecated

Filename: core/Input.php

Line Number: 410

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/hakantas/public_html/system/core/Exceptions.php:272)

Filename: core/Input.php

Line Number: 410

Local Storage ve Session Storage Farkları Nelerdir?
Öneri ve Hata Raporu



Günün Sözü Sevemez kimse seni benim sevdiğim kadar

oylama 2.9/5 yorum 0 yorum yazar Hakan Taşan tarih 10 Ağustos 2015

Bu yazıda web uygulamalarında Local Storage ve Session Storage arasındaki farklardan bahsedeceğim. Aslına bakarsanız Web Storage, Local Storage ve Session Storage konularını okuduysanız aralarında çok da fark olmadığını göreceksiniz. Yine de net bir şekilde aralarındaki farkları ve hatta benzerlikleri yazmakta fayda var.

 

Local Storage ve Session Storage Farkları ve Benzerlikleri

  Local Storage  Session Storage
 F1)  Veriler, kullanıcı silene kadar veya tarayıcı geçmişi  silinene  kadar kaybolmaz.  Veriler, tarayıcı veya sekme kapandığında silinir.                                         
 F2)  localStorage nesnesinden metodlar kullanılır.  sessionStorage nesnesinden metodlar kullanılır.
     
 B1)  Veriler, kullanıcının bilgisayarında depolanır (client-  side).  Veriler, kullanıcının bilgisayarında depolanır (client-  side).
 B2)  Verilerin depolama boyutu sınırsızdır (tarayıcı  sınırlayabilir).  Verilerin depolama boyutu sınırsızdır (tarayıcı  sınırlayabilir).
 B3)  Verilerin son geçerlilik tarihi yoktur.  Verilerin son geçerlilik tarihi yoktur.

 

Önizlemeye tıklayarak Local Storage ve Session Storage karşılaştırması yapabilirsiniz. İsminizi girip kaydettiğinizde veriler hem Local Storage hem de Session Storage ile depolanır. Alt satırda iki türde de depoladığınız veri okunur. Tarayıcıyı veya sekmeyi kapatıp sayfayı tekrar açtığınızda verinin Local Storage'da kaybolmadığını ama Session Storage'da kaybolduğunu göreceksiniz.

onizleme

paylaş Paylaş
oylama yap Oyla

makale yorumları YORUMLAR

Bu makale için yorum yazılmamış