% response.buffer = TRUE ' input is like: file.asp?LC=STD&IID=112&RP=29.99&OC=CA&SHP=1 ' we are just adding a dummy shipping point of 1 when clicked on '********header code for checking the timestamp 'querystring will be like: fle.asp?ID=Y760PRIORITY&XF=1234567&LC=STD&IID=237&;RP=10.00&OC=BH&SHP=1 ' we are just adding a dummy shipping point of 1 when clicked on '***XF must exist and must be numeric or user is returned to login page if isempty(request.querystring("XF")) then response.redirect "wh_login2a.asp?MG=2" 'ask user to login end if xf = request.querystring("XF") '*******XF must be numeric to continue if isnumeric(xf) = TRUE then diff1 = 0 diff1 = datediff("s","20-07-2008",Now()) 'might need to reverse if negative if diff1 < 0 then diff1 = diff1 * ( -1) end if diff2 = 250000 'number of seconds we are allowing if (diff1 - xf) > diff2 then 'if true, then this is an old login response.redirect "wh_login2a.asp?MG=4" 'tell it what message to display--page is too old end if timestamp= xf else response.redirect "wh_login2a.asp?MG=2" end if %>
|
|
|
|
|