Is it recommended to modify Secret key in Encrypter.php file ?
Yes, very much so.
Is it possible to build a array?
$_SESSION['cart'][$product_id] = $quantity;
foreach($_SESSION['cart'] as $product_id => $quantity):
Do you think that I can do something of similar with your script?
Ok, I use serialize. Thanks !
You can `Cookie::set()` an array, but you have to `serialize($array)` it before and `unserialize($array)` after you `Cookie::get()` the array.
$cart = array();
$cart[$product_id] = $quantity;
$cart = serialize($cart);
$cart = Cookie::get('cart');
$cart = unserialize($cart);
foreach($cart as $product_id => $quantity) :
Will update when I have the time, to make this easier.
QUOTE (from documentation)
I could not find a more advanced cookie handler.
Indeed, I vouch for the author’s statement. By far the best and most comprehensive Cookie management script I have ever found, worth more than its weight in gold.
Many thanks. I’d have been happier if the Event handler class coming with this hadn’t been abridged.
Fine package, the more I use it the better I like it! With array “serialize” it will be complete and the update will be welcome. I am acquiring the Event Handler package too, if this script is the yardstick. This author is inimitable.
Thanks for those kind words! The update for serialized values is on the way. You will then be able to store all data types(string, bool, array, object …) as a cookie.
That would make this the best Cookie Management Script ever. I bought the Event Handler package less than an hour ago and find it to be equally awesome! Much obliged.
I nee this to create a special search.
1. user clik a map and get a state for ex : “my state”
2. if if I click a link after, may I get page.php?state=mystate ? and how ?
I need a very simple cookie use, but is better to ask before:
The plugin allows you to read if cookies exist and set cookies. For redirecting you can use php:
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $0.50
Unlimited graphic downloads & digital courses. Only $29/month
22,000+ templates & 1,000+ courses
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work