Re: Checking clients computer time to prevent SSL errors
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Wed, 11 Jan 2006 05:15:39 -0500
mags said the following on 1/11/2006 1:33 AM:
We get calls from clients who have difficulty logging in due to their clock being too far from our servers clock and therefore the SSL authentication fails. Has anyone tried using JavaScript to identify this issue (eg the clocks being too far out of sync (around 10 minutes) and alerting the client via a popup or something?
Never done it but it is trivial to do it. Have an intermediate page that redirects them to the actual login page with the current time appended. Then have the server deal with the differences.
location.href="somePage.asp?"+new Date().getTime();
And then have somePage.asp read the querystring and give a message that the date on the PC is too far out of sync with your servers time.
Or, don't use the user's time at all and use the server's time all the time. Which is the best way to do it.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ .
- References:
- Prev by Date: Re: Javascript Loop with ASP
- Next by Date: automation server can't create object
- Previous by thread: Checking clients computer time to prevent SSL errors
- Next by thread: automation server can't create object
- Index(es):
Relevant Pages
|