Z
Z
Z_Coder2014-02-08 17:44:40
Yii
Z_Coder, 2014-02-08 17:44:40

Problems deleting CWebuser data?

Hello. I have problems with CWebuser data, namely the data that I store in it (for example, Yii::app()->user->order_id, Yii::app()->user->result, etc.) are always removed, although I remove them with setState(), e.g. Yii::app()->user->setState("order_id", null). Therefore, a certain caching effect occurs, for example, I need to display Yii:: app ()-> user-> result (this is the result of testing), then it is displayed not only that the result obtained is the result of the previous one, although once again I repeat, I explicitly deleted the variable, as well as assigned it a new result. This is problem number one.
Second problem: This data is suddenly deleted. For example, when I go to the payment page of my bank ( https://3dsecure.kkb.kz/jsp/process/logon.jsp)for the first time after turning on the browser, I confirm the ssl certificate and then go to the payment page, pay. After that, I go to the site to look at the test result and suddenly throws me out because I am no longer logged into the site. After that, I go to the site and log in a second time (and all the last times, while ssl confirmation is no longer required), everything works and voila does not throw me out anymore. The essence of this problem is that user->id, user->name, user->role, etc. data are not always deleted. I can stay logged in, but doing so might delete some other important session variable, such as user->order_id. I use chrome, it asks for ssl confirmation when going to the corresponding page if the browser was turned off.
The first problem occurs through time. The second one is stable. What is the reason? How to solve them?
Of course, I understand that this all looks like some kind of poltergeist, but still I hope that someone on this site knows or guesses what might be. case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-02-08
@Nc_Soft

Why are you keeping them there? Set normal cookies or use cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question