Link to home
Create AccountLog in
Avatar of bionicblakey
bionicblakey

asked on

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.
Avatar of BogoJoker
BogoJoker

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
Avatar of bionicblakey

ASKER

hmm.

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

Also, what if the client has javascript turned off?
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
ASKER CERTIFIED SOLUTION
Avatar of Brian Bush
Brian Bush
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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?
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