Kamis, 05 Juni 2014

How to Set up Session with Laravel

We usually play with session and create the session by server side script like PHP. But, how we create session with client side script?

In this case is EXTJS, you can store cookie instead of session.

The first thing you need to do is setProvider and set a variable into it;

Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

And then to get varA from cookies;


And if you need to clear that value from cookies


That's it!

1 komentar:

  1. Four high cards; ace, king, queen, and jack of blended fits. The draw may match any of them for a pair of jacks or better or bring a ten for a straight. An instance would be 9 of 1xbet clubs, 9 of spades, 10 of clubs, jack of hearts, queen of diamonds.


Cara Mengetahui Besar Database PostgreSQL Tanpa Mendownloadnya

Berikut adalah langkah-langkah untuk mengetahui ukuran semua database di instance PostgreSQL yang berjalan di dalam kontainer Docker: 1. Men...