Welcome Guest, Not a member yet? Register   Sign In
Session cookie is sent multiple times
#1

[eluser]Unknown[/eluser]
Hi

I noticed that when modifying session data you always call sess_write and therefore set_cookie.

However there are times when I have to write a lot information in the session data and I have to access 50 times to modify the session info in the DB.

If I do that the same cookie session is written 50 times and then sent 50 times in the HTTP header.

You will notice it for example in https://demo.phppointofsale.com/index.php/sales that is developed in CI.

Is this a bug?
Can it be prevented?

Regards




Theme © iAndrew 2016 - Forum software by © MyBB