jeudi 20 août 2015

Laravel never forget an item from session

I push an array into my Laravel session:

  "accountConfirm" => array:1 [
    0 => array:2 [
      "table" => "teacher"
      "id" => 37
    ]
  ]

When i call to Session::flush() or Session::forget('accountConfirm') and in below line make the test

if ( Session::has('accountConfirm') ) 
{
  // false
}

But after, without the remove functions (flush, forget) when i make the same test:

if ( Session::has('accountConfirm') ) 
{
  // true
}

To make sure, i'm not more pushing this item.

Why this occurs?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1MHg83C
via IFTTT

Aucun commentaire:

Enregistrer un commentaire