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?
 
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
0
 
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
0
 
bionicblakeyAuthor Commented:
hmm.

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

Also, what if the client has javascript turned off?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

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

All Courses

From novice to tech pro — start learning today.