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:

http://www.jorgebatres.com/resorts/silver-lake-resort.html

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?
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.

lenamtlCommented:
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
0
Jorge BatresAuthor Commented:
The users are never logged in as we do not allow registration.
0
lenamtlCommented:
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
http://extensions.joomla.org/category/vertical-markets/booking-a-reservations

or use Fabrikar to create custom script that are compatible with Joomla session
http://fabrikar.com/
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy 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
0
lenamtlCommented:
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.
0

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
0
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
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.