when we create ecommerce website ,,user add product to cart with out performing any login just like a guest ,,so how we know which client add that product from his system,,, we must have a unique key to identify.....so in which way how i define that unique id.....i hope you got me.
The answer for sessions is so simple
Laravel doesn't actually use the $_SESSION at all, it implements a completely different driver.
So, to have acesses to the external session, you just use the native session_start() and session_name() in pure PHP and now you have acess to all data save in the global $_SESSION on the same namespace used in the side project.