Joomla Session Refresh

Hi, I have a PHP script that populates a PHP reservation form with user session values gathered from a Jquery calendar in a Joomla sitesave.php; however, many times I have seen the form not populated with initial values from user session if user tries to fill the form again after initial submission. My guess is that the way the session refresh is currently set up in the save.php script is not working properly all the time. Please look at the test site at:

The initial values are loaded into the form by the save.php script, but some times after initial submission in the production sites, users try to do it again, and sometimes the values are not loaded, and the problem troubleshooting this is that it is an intermitent problem that doesn't happen all the time, but it happens some times. I hope you guys can help me with this issue.
Overall the save.php script works but there is an issue with user session refresh somewhere.
Jorge BatresAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Maybe there is  conflict between Joomla session and your script session.
If the user is logged in Joomla the session is store in the DB.

When you got the issue is the user is logged in the backend or the frontend.
If you do the test and you are logged as an admin in the backend for example
Jorge BatresAuthor Commented:
The users are never logged in as we do not allow registration.
Ok but when you have this problem are you logged as admin then testing your script as visitor?
If so try to close your admin session, clear your browser cache then do your tests to see if this fix the problem.

You may also consider Joomla ready script

or use Fabrikar to create custom script that are compatible with Joomla session
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Jorge BatresAuthor Commented:
The script does the job, but if someone is never logged in and finishes filling out the form and then goes back and tries to do it again, the initial values are not sent to the form
It is normal the session could not be saved in DB if the user is not logged in and/or not submit the form at least once.

You can try using localstorage or cookies for that case, this will kept the data in form for a certain time depending on what you decide to use.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jorge BatresAuthor Commented:
I never allow users to sign into my sites, so I still need solution for the data to load if they want to resubmit the form. Thanks anyway
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.