We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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



98.9k

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