Need some help here.
I have a form on a page with session_start() needed to check user login. I want to preview the form on another page which also checks if required data are entered. After preview, I want to go back to the form page by clicking on the browser back button or javascript:history.go(-1) back button. All entered data are lost when I come back to the form page. This is caused by session_start() I think. I have a work around by storing the data in session on the previewe page, and usring value=$_SESSION9[variable_name] in the form page. But this is not ideal. I have to unregister all data in the old session otherwise they will appear in a new form.
I wonder how others for example this page go about this. Do you use other methods than session to check user login? Is there a way to avoid restarting a session, for example, start a session only when no session has been started.