We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Session Regeneration

Hi Guys,

I would like to check how is it that I can go about regenerating sessions?

So as to,

1) Prevent Session Fixation attacks 2) Update persistent ACLs.

Since I do not see any function, I assume I would use the PHP session_regenerate_id to generate a new one and assign it?

Thanks for the assistance


The framework does not have a method in its session component to regenerate the session but you can use session_regenerate_id