I am using
session_start();
session_regenerate_id();
to try to avoid that problem, but it's happending anyway.
but the problem is that the new session in not ovrewiting the file session, it is adding more data to the file.
And the worse thing is that it does not happend always, so I havent be able to find the problem because some times works some others not, so it's confused me.