We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Session problems on busy server

bionicblakey
bionicblakey asked
on
Medium Priority
211 Views
Last Modified: 2008-03-06
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.
Comment
Watch Question

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

Author

Commented:
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
Solutions Architect
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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 Architect

Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.