I have some PHP script that logs in and returns a JSON array with a session ID if the login was successful.
In my app, I want to login at the front page and continue out
Here are some things you should think about:
This will guarantee a bit more security and functionality than just clearing the session id on your app side.