Solved

how to pass URL variable into html page

Posted on 2011-02-26
9
936 Views
Last Modified: 2012-05-11
Dear Experts,

After  I login my bank account  for doing  stock buy sell order ,and if I don't input anything in the
working web page within 900 seconds, my account will be terminated by bank and I need to re-login my account
in order to finish my other order. I feel that 900 seconds will be too trouble or too short  for me  if I am doing a lot
 trading in one day
I would like to change timer setting of 900 seconds to 3600 seconds(one hour) but I don't know how! How
to pass URL variable of timer setting into html page code.

After viewing source code of the bank login page, login.htm , I found there is some html code for Timer of 900 seconds
like this as follows
<body onload="startSessionTimer('900', true); validateCookies(); setCursor();" style="background: #FFFFFF;">  
in  login.htm. how can I pass URL variable into the login.html page ?  Please advise.

you can web the following bank link page and view the source code of login.htm   at https://ibank.standardchartered.com.hk/nfs/login.htm?lang=en_US,
and you will understand  what I am asking . it seems it is possible to change startSessionTimer('900', true);
to startSessionTimer('3600', true) by change URL variable some thing like
https://ibank.standardchartered.com.hk/nfs/startSessionTimer.jsp?%7C36000, but it fail and it is hard by
try by error

Please advise

Duncan



login.htm from bank
========================

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/WEB/INF/xhtml1-strict.dtd">                            
  <html> <head> <meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"/> <meta http-equiv="CACHE-CONTROL" content="NO-STORE"/> <meta http-equiv="PRAGMA" content="NO-CACHE"/> <meta http-equiv="EXPIRES" content="-1"/> <title> Standard Chartered Online Banking </title> <link rel="stylesheet" type="text/css" href="/nfs/ibank/theme/default/css/style.css" media="all"/> <script type="text/javascript" src="/nfs/js/common.js?1102200020"> </script> <script type="text/javascript">
    	var userLang = "en_US";

    	function submitLoginForm() {
        	var form = document.loginForm;
            try {
                var submitBtn = document.getElementsByName('Login')[0];
                if (submitBtn != null)
                    submitBtn.disabled = true;
            } catch (e) {
            }   
            form.submit();         
        }

        function setCursor() {
        	document.forms[0].j_username.focus();
        }
 </script> </head> <body onload="startSessionTimer('900', true); validateCookies(); setCursor();" style="background: #FFFFFF;">  <form id="command" name="loginForm" action="ibank_security_check.htm" method="post" onsubmit="return checkSubmit();"> <table cellpadding="0" cellspacing="0"> <tr> <td align="left"> <table class="tbl_layout" cellpadding="0" cellspacing="0"> <colgroup> <col width="2%"/> <col width="96%"/> <col width="2%"/> </colgroup> <tr> <td rowspan="3">&nbsp;</td> <td>   <table cellpadding="0" cellspacing="0"> <colgroup> <col width="20%" class="scb_colorbar1"/> <col width="10%" class="scb_colorbar2"/> <col width="15%" class="scb_colorbar3"/> <col width="5%" class="scb_colorbar4"/> <col width="50%" class="scb_colorbar5"/> </colgroup> <tr> <td class="scb_colorbar1">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> <br/> <table class="tbl_heading" cellpadding="0" cellspacing="0"> <colgroup> <col width="17%"/> <col width="83%"/> </colgroup> <tr> <td rowspan="2"> <img src="/nfs/ibank/theme/default/images/logo.gif"> </td> <td class="txt_mainheading">
            &nbsp;
 </td> </tr> <tr> <td class="txt_subheading"> Hong Kong </td>  </tr> </table> <div class="spacer">&nbsp;</div> <hr class="hr_heading"/> </td> <td rowspan="3">&nbsp;</td> </tr> <tr> <td> <br/> <table cellpadding="0" cellspacing="0"> <colgroup> <col width="109px"/> <col width="557px"/> <col width="81px"/> </colgroup> <tr> <td rowspan="3">&nbsp;</td> <td class="tbl_sprt_bottom"> <span class="txt_title"> Online Banking </span> </td> <td rowspan="3">&nbsp;</td> </tr> <tr> <td> <br />  </td> </tr> <tr> <td>     <span class="txt_error2"> This session has timed out for security reasons. Please start again. (Msg Code : 3320) </span>    <table cellpadding="0" cellspacing="0"> <colgroup> <col width="75%"/> <col width="3%"/> <col width="22%"/> </colgroup> <tr> <td class="tbl_content_top"> <table cellpadding="0" cellspacing="0"> <colgroup> <col width="45%"/> <col width="4%"/> <col width="51%"/> </colgroup> <tr> <td class="tbl_content_top"> <table class="tbl_form" cellpadding="0" cellspacing="0"> <colgroup> <col width="1%" class="tbl_listing_row_even"/> <col width="30%" class="tbl_listing_row_even"/> <col width="2%" class="tbl_listing_row_even"/> <col width="66%" class="tbl_listing_row_even"/> <col width="1%" class="tbl_listing_row_even"/> </colgroup> <tr> <th class="tbl_header_left"> <div class="border_left_grey">&nbsp;</div> </th> <th class="tbl_content_left" colspan="3"> Secure Login
			                                                                &nbsp;<img src="/nfs/ibank/theme/default/images/ico_secure_sml.gif"> </th> <th class="tbl_header_right"> <div class="border_right_grey">&nbsp;</div> </th> </tr> <tr> <td>&nbsp;</td> <td class="txt_highlight tbl_content_right tbl_content_top"> <br/> Language </td> <td>&nbsp;</td> <td> <br/> <select name="lang" onchange="window.location = 'login.htm?lang=' + this.value;"> <option value="en_US"> English </option>    <option value="zh_CN"> ¿¿ </option>      <option value="zh_HK"> ¿¿ </option>   </select> </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="txt_highlight tbl_content_top tbl_content_right"> Username </td> <td>&nbsp;</td> <td> <input type="text" name="j_username" maxlength="16" size="18" autocomplete="off" />  <br/> <span class="txt_note_disclamer"> (8-16 letters and/or numbers) </span> </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td class="txt_highlight tbl_content_top tbl_content_right"> Password </td> <td>&nbsp;</td> <td> <input type="password" name="j_password" maxlength="16" size="18" autocomplete="off"/>  <br/> <span class="txt_note_disclamer"> (8-16 letters and/or numbers, case sensitive) </span> </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/>  <a href="/nfs/ral_tnc.htm?t=14-1-142910B97331EE50B32A10319300F9A7&a=doInitForgotUsrNamePasswd"> Forgot username / password </a> </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td> <span class="button"> <input type="submit" name="Login" value="Login" onclick="submitLoginForm();"/> </span> </td> <td>&nbsp;</td> </tr> <tr class="tbl_listing_end"> <td colspan="5">&nbsp;</td> </tr> </table> </td> <td class="tbl_content_middle"> <img src="/nfs/ibank/theme/default/images/ico_or.gif"> </td> <td class="tbl_content_top"> <table class="tbl_login_grey" cellpadding="0" cellspacing="0"> <colgroup> <col width="1%" class="tbl_notice_left"/> <col width="4%" class="tbl_notice"/> <col width="94%" class="tbl_notice"/> <col width="1%" class="tbl_notice_right"/> </colgroup> <tr> <th class="tbl_header_left"> <div class="border_left_grey">&nbsp;</div> </th> <th colspan="2" class="tbl_content_left"> New to Online Banking?
			 </th> <th class="tbl_header_right"> <div class="border_right_grey">&nbsp;</div> </th> </tr> <tr> <td class="tbl_notice_left">&nbsp;</td> <td class="tbl_content_top"> <br/> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/>&nbsp;
																		</td> <td> <br/>  <a href="/nfs/ral_tnc.htm?t=14-2-142910B97331EE50B32A10319300F9A7" class="txt_highlight"> Instant Registration </a> </td> <td class="tbl_notice_right">&nbsp;</td> </tr> <tr> <td class="tbl_notice_left">&nbsp;</td> <td>&nbsp;</td> <td> If you are new to our Online Banking, you can register instantly in 5 easy steps by <a href="/nfs/ral_tnc.htm?t=14-2-142910B97331EE50B32A10319300F9A7">clicking here</a>. <br/> <br/> </td> <td class="tbl_notice_right">&nbsp;</td> </tr> <tr> <td colspan="4">&nbsp;</td> </tr> <tr height="94px"> <td colspan="4">&nbsp;</td> </tr> <tr class="tbl_notice_end"> <td colspan="4">&nbsp;</td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0"> <tr> <td>        </td> </tr> <tr> <td class="tbl_content_top txt_note_disclamer"> <br/> Our Bank will never ask you for your sensitive account information, e.g. username, password and other confidential account or credit card information by email. </td> </tr> <tr> <td class="tbl_content_top txt_note_disclamer"> <br/> It is essential that you do not take into consideration or respond to any information on this site or send any information or materials to us before you read this <a href="http://www.standardchartered.com.hk/home/legal.html" target="new_window" style="font-size: 10px">Important Legal Notice</a> and our <a href="http://www.standardchartered.com.hk/home/legal_data_main.html" target="new_window" style="font-size: 10px">Data Protection and Privacy Policy</a>. </td> </tr> </table> </td> <td>&nbsp;</td> <td class="tbl_content_top"> <table class="tbl_info_green" cellpadding="0" cellspacing="0"> <colgroup> <col width="1%" class="tbl_notice_left"/> <col width="98%" class="tbl_notice"/> <col width="1%" class="tbl_notice_right"/> </colgroup> <tr> <th class="tbl_header_left"> <div class="border_left_green">&nbsp;</div> </th> <th class="tbl_content_left"> Need Help?
 </th> <th class="tbl_header_right"> <div class="border_right_green">&nbsp;</div> </th> </tr> <tr> <td>&nbsp;</td> <td> <ul class="grnList"> <li> <div class="rightBoxHdrTitle"><b>24/7 Phone Assistance</b></div><b>Please call</b><br/>(852) 2886 8868<br/><div class="rightBoxHdrTitle2"><b>For language selection press</b></div>1 6 0 for Cantonese<br/>2 6 0 for English<br/>3 6 0 for Mandarin </li> <li> <a href="http://www.standardchartered.com.hk/internet-banking/faq/en/" target="new_window">Frequently Asked Questions</a> </li> <li> <a href="http://www.standardchartered.com.hk/cb/ibkg/sysmaint.html" target="new_window">Website Maintenance Schedule</a> </li> </ul> </td> <td>&nbsp;</td> </tr> <tr class="tbl_info_green_bottom"> <td class="tbl_footer_left"> <div class="border_left_green">&nbsp;</div> </td> <td class="tbl_info_green_bottom">&nbsp;</td> <td class="tbl_footer_right"> <div class="border_right_green">&nbsp;</div> </td> </tr> </table> <br/> <table> <tr> <td class="tbl_content_top"> <img src="/nfs/ibank/theme/default/images/login_right.jpg" usemap="#login_img_map"/> <map name="login_img_map"> <area shape="rect" coords="0,0,174,60" target="new_window" href="http://www.standardchartered.com.hk/internet-banking/demo/en/" alt="Click to View Demo" /> <area shape="rect" coords="0,80,174,140" target="new_window" href="http://www.standardchartered.com.hk/cb/ibkg/secure.html" alt="Security Tips" /> <area shape="rect" coords="40,160,174,220" target="new_window" href="http://secure.omniroot.com/en/find/sealct.cfm?cn=ibank.standardchartered.com.hk" alt="" /> </map> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/WEB/INF/xhtml1-strict.dtd">                            
 <br/> <br/> <br/> <hr class="hr_heading"/> <div class="footer_spacer">&nbsp;</div>  <table style="width: auto;"> <tr> <td> <span class="txt_note_grey"> Copyright &copy; 2010 Standard Chartered Bank </span>&nbsp;<span class="txt_seperator">|</span>&nbsp;
	</td>  <td> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/> </td> <td>   <a href="https://online-banking.standardchartered.com.hk/cb/html/legal_ibk_e.html" target="new_window">Terms &amp; Conditions</a>    </td>  <td>
        	&nbsp;<span class="txt_seperator">|</span>&nbsp;
        	<img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/> </td> <td> <a href="http://www.standardchartered.com.hk/home/legal_data_main.html" target="new_window">Data Protection and Privacy Policy</a> </td>  <td>&nbsp;</td> </tr> </table> <br/> <br/>   </td> </tr> </table> </td> </tr> </table>  <input type="hidden" name="t" value="14-0-142910B97331EE50B32A10319300F9A7">
</form> </body> </html>

Open in new window

0
Comment
Question by:duncanb7
9 Comments
 
LVL 9

Accepted Solution

by:
sshah254 earned 125 total points
ID: 34989204
I wouldn't worry about changing this ... 'cause I don't want to get into trouble.

Just write a small script that will click somewhere on that webpage every 14 minutes.

Ss
0
 
LVL 18

Assisted Solution

by:Jerry Miller
Jerry Miller earned 125 total points
ID: 34989209
If they have proper session security, it is not possible. If you can alter your variables that easily, you should find another bank because your account is not safe.
0
 
LVL 9

Assisted Solution

by:rg20
rg20 earned 125 total points
ID: 34989221
The timer is typically controlled by IIS or some other function of a component.  Therefore even if you pass the new value, IIS won't recognize it.

sshah254 is right, you need some type of program script, ruby watir has one, that will attach to your open session, then click a button.  What you need though is a timer job on your computer to launch the script.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 34989229
What is your favorite browser ?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 13

Author Comment

by:duncanb7
ID: 34989234
Yes, it is session security issue, but it is trouble me if I am doing a lot stock trading VBA programming for automation buy sell.
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34989240
I am using IE7 in window Vista.

0
 
LVL 13

Author Comment

by:duncanb7
ID: 34989272
I done VBA code for auto refresh for 14 mins by  sub of loggingfresh() as follows but it is not allowed me to
do other code running like buy sell subroutine at the same time  since the loggingrefresh() will occupy the whole code running complie


Sub Loggingrefresh()
With myIE
If Range("B1") = "Logging" Then

Debug.Print myIE.LocationURL
.navigate .LocationURL

Call Application.OnTime(DateAdd("s", 10, Now()), "'Loggingrefresh'")
End If
End With

End Sub
0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 125 total points
ID: 34989502
You can use GM to run your script : http://www.gm4ie.com/
0
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 34991291
THanks for all

I made other vba program
to control the refresh
and detech the bank window
title of IE by API findwindown()
and postmessage() a 'enter' key
to URL bar  for every 14 minutes

Done
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
initialise the object angular2 4 32
Initialize SharePoint Online List Values in Quick Edit 7 21
Replace &lt; with < 14 55
send keys not working in vba 7 38
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now