Session problems on busy server

Hello

On our server, we allow users only a certain amount of time to complete a transaction.

The time is tracked in a session.

When the server has a heavier load than usual, the sessions expire early!
What is causing this ?

Thanks.
bionicblakeyAsked:
Who is Participating?

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

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

BogoJokerCommented:
Have you thought about making the counter javascript, therefore its clientside and not wasting server processing for something simple like a 2 minute counter.

Joe P
bionicblakeyAuthor Commented:
hmm.

Would it then need to pass info to the PHP app?

Also, what if the client has javascript turned off?
BogoJokerCommented:
Good point, with javascript turned off that would be a problem.
If it was turned on, when time runs out the page could be redirected.

Joe P
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Brian BushSolutions ArchitectCommented:
You could use META REFRESH. It does not rely on Javascript and runs in the browser client.

<meta http-equiv="refresh" content="120;url=http://www.company.com/youexpired.html">

The 120 is number of seconds before redirect.

You don't need to send anything to the PHP page unless you want to have end
logic of some variety. Not sure why you would need that.

--brian

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
bionicblakeyAuthor Commented:
well..
i don't think that will work  either...
the process takes  the user over many different pages

in terms of PHP sessions, is there a way to lock them to make sure they remain in tact?
Brian BushSolutions ArchitectCommented:
as long as you put a session_start(); at the top of each
page, the session varibles will follow them.

Also, you can set the meta tag with a variable in it for the url so
that it can change.

--brian
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
PHP

From novice to tech pro — start learning today.