Having two different sessions in same domain

You should call session_name before calling session_start. This sets the name of the cookie used to identify the session (by default this is PHPSESSID).

Use a different name for each application. You shouldn’t have to mess with the variables inside the session.

Leave a Comment