D
D
Denis932022-04-13 16:12:28
opencart
Denis93, 2022-04-13 16:12:28

How does order editing work in the opencart admin panel?

I looked at the code in opencart 2 and surprisingly somehow, in the admin panel from editing the order, it accesses the api located on the side of the site via curl, and there, in turn, selects products by session cookies, how can this work in general, because cookies in the first place should not be accessible from another browser, especially from another device, and besides, they are cleaned. How is the logic in this plan? Maybe session data is cached and then created as new sessions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2022-04-13
@ThunderCat

in the admin panel from editing the order, it uses curl to the api located on the side of the site
Code to the studio, maybe you misunderstood something or incorrectly expressed your idea.
there, in turn, selects products by session cookies
Session cookies of whom? admin? User?
After all, cookies in the first place should not be available from another browser, especially from another device, and besides, they are cleaned, does anyone know how the logic works in this regard?
A cookie is not just a string, it's a set of values, one of which is probably generated from, for example, a login and a password hash with a salt, and will be the same for any browser upon login.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question