I have few Facebook Apps hosted on a single domain on my server. It is possible that the same user may access two or more of my apps in a single session. How do I make sure that some data from one app doesn't end up in another app? Since the user may simply navigate away from the app, so logging out is not an option.
If you use a different session_name()
for each app, the sessions are effectively inert from one another.
// Application 1
session_name("APP1");
session_start();
// Application 2
session_name("APP2");
session_start();