Problem in Automatic Login
hi,
In FORM action i am using site's login page's URL and giving TARGET in IFRAME. And changing IFRAME's location to my perticular page but if i have already logged in that window then its going on target URL but if i log out from that IFRAME and refreshing then login error coming and not going on target page..
[331 byte] By [
tejalm] at [2007-11-19 19:51:14]

# 1 Re: Problem in Automatic Login
I am confused. Is this what you are struggling with or something you desire to accomplish. Can you explain more clearly, please?
# 2 Re: Problem in Automatic Login
Hi,
I have one target url from where i want to fetch data. but to reach that page first have to login to that site so here i am using IFRAME.
In Form tag's action i am using login page's url. and then giving target to IFRAME so can open site on that IFRAME. and after submitting form i m changing location to my target page thats :
myIFRAME.location.href="Target.asp";
After doing this I am getting my Target Page in IFRAME.
But many times its creating problem..
If I have already Logged in that site on the same browser window then i am getting my target page.
And when signing in to site from that frame then not getting problem.
But if i am closing that window and reopening that site then instead of target page login failed page coming.
# 3 Re: Problem in Automatic Login
I am still very confused. Can you post your code using code ( http://www.dev-archive.com/forum/misc.php?do=bbcode) tags?
# 4 Re: Problem in Automatic Login
code :
<html>
<head><title></title></head>
<script type="text/javascript">
myIFRAME.document.designmode = "On";
function LoginPage()
{
document.form1.submit();
myIFRAME.location.href="http://us.f363.mail.yahoo.com/ym/Compose?YY=88324";
}
</script>
<body onLoad="setTimeout('LoginPage()',1000)">
<iframe name="myIFRAME" id="source" width="1000" height="1000"></iframe>
<form action="http://www.mail.yahoo.com" method=post target="myIFRAME" name="Affiliate">
<INPUT id="email address" name=login value="name" type="hidden">
<INPUT id=password type="hidden" name=password value="password">
</form>
</body>
</html>
# 5 Re: Problem in Automatic Login
So you take this form and automatically log into Yahoo mail and if you are already logged in you don't want it to log you in automatically? But if there is no one logged in you want it to log you in?
Is this what you are trying to do?
# 6 Re: Problem in Automatic Login
No... My query is that if I have already logged in then and then I am getting my target in IFRAME but if I am not logged in then its not showing a Target URL in IFRAME.. Why it is so ?? Its not compulsory to do login manually,,, After that only I can get my Target URL automatically..??