Change session id format to UUID4

I am writing an application that will be supporting a legacy node application that uses uuid4 as session ids.

How can I implement uuid4 in phalcon and use that as my internal session id.

A quick Google search found a couple PHP libraries that generate UUID4 strings. You can then use session_id() to change the session ID to a UUID4 string you've generated. Note that you'll need to call session_id() before starting the session.