R
R
raycheel2014-04-27 18:51:48
Yii
raycheel, 2014-04-27 18:51:48

Storing unauthorized user data in Yii. How?

Hello! It is necessary to store this kind of data about the user (not authorized):
1) The last visited page on the site, before going to the login page, in order to return it later.
2) If the user clicked to buy a product while not being authorized, so that after authorization they would be able to complete the purchase (ie return it to the payment page)
Where to store this kind of information, or how to implement it in a more privileged way?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2014-04-27
@nazarpc

You can't use cookies, link the data to the user's session.

V
Vladlen Grachev, 2014-04-27
@gwer

Information of unauthorized use can be stored in cookies. Or in session.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question