PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 2.33 average.

Automatic login via asp (vb) .net

 
 
Paul M.
Guest
Posts: n/a
 
      14th Dec 2003
Hi,
we have 2 www systems one which we wrote ourselves the other is a parent
company one over which we have no control. The 2nd system involves the user
having to enter a username & password in a login screen. Is there any way of
calling the 2nd systems login page and having the username & password be
inserted automatically? This auto passing in of information might also be
applied to optins selection so instead of manually clicking on several
buttons to get to where we want to go we just send a string with the options
included.

I have checked and there seems to be no facility for page parameters in the
2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.

Thanks in advance
Paul M.



 
Reply With Quote
 
 
 
 
Dag Sunde
Guest
Posts: n/a
 
      14th Dec 2003
"Paul M." <(E-Mail Removed)> wrote in message
news:brh7hi$c03$(E-Mail Removed)...
> Hi,
> we have 2 www systems one which we wrote ourselves the other is a

parent
> company one over which we have no control. The 2nd system involves the

user
> having to enter a username & password in a login screen. Is there any way

of
> calling the 2nd systems login page and having the username & password be
> inserted automatically? This auto passing in of information might also be
> applied to optins selection so instead of manually clicking on several
> buttons to get to where we want to go we just send a string with the

options
> included.
>
> I have checked and there seems to be no facility for page parameters in

the
> 2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.


If this "System" is a web-based login form, it must be. It might be a
java-applet
or an axtive-x control, but somewhere on that page there bust be 2 textboxes
to input "user" and "pwd".

The "xxx.sh?login=xx..." form only works for forms that is "GET"'ed,
not "POST"'ed. So the fields might be there, but you must POST them
to the script.

If you can post the part of the HTML that defines the login-form, maybe
we can find something?

--
Dag.



 
Reply With Quote
 
Munsifali Rashid
Guest
Posts: n/a
 
      15th Dec 2003
It *might* be possible using frames. Create a frameset with one frame and
load the login page into it. When the page is loaded, the frameset can
populate the form with username and password. Your frameset would something
like the following, assuming the form in the main page is called "frm" and
the username and password elements are called "txtUsername" and
"txtPassword".

<html>
<head>
<title>Frames</title>
<script language="javascript">
function populate()
{
var p = parent.frames["body"];
p.frm.elements["txtUsername"].value = "username";
p.frm.elements["txtPassword"].value = "password";
}
</script>
</head>

<frameset>
<frame name="body" src="loginpage.aspx" onload="populate()">
</frameset>

</html>

I've tested this code locally, and it works. However, I'm not sure it would
work if the frameset and login page are in different domains, as this would
be a security risk.

Hope this helps,

Mun




"Paul M." <(E-Mail Removed)> wrote in message
news:brh7hi$c03$(E-Mail Removed)...
> Hi,
> we have 2 www systems one which we wrote ourselves the other is a

parent
> company one over which we have no control. The 2nd system involves the

user
> having to enter a username & password in a login screen. Is there any way

of
> calling the 2nd systems login page and having the username & password be
> inserted automatically? This auto passing in of information might also be
> applied to optins selection so instead of manually clicking on several
> buttons to get to where we want to go we just send a string with the

options
> included.
>
> I have checked and there seems to be no facility for page parameters in

the
> 2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.
>
> Thanks in advance
> Paul M.



 
Reply With Quote
 
Paul M.
Guest
Posts: n/a
 
      15th Dec 2003
cheers, I'll try that tommorrow.

paul

"Munsifali Rashid" <mun@**RemoveToReply**vefuk.com> wrote in message
news:#(E-Mail Removed)...
> It *might* be possible using frames. Create a frameset with one frame and
> load the login page into it. When the page is loaded, the frameset can
> populate the form with username and password. Your frameset would

something
> like the following, assuming the form in the main page is called "frm" and
> the username and password elements are called "txtUsername" and
> "txtPassword".
>
> <html>
> <head>
> <title>Frames</title>
> <script language="javascript">
> function populate()
> {
> var p = parent.frames["body"];
> p.frm.elements["txtUsername"].value = "username";
> p.frm.elements["txtPassword"].value = "password";
> }
> </script>
> </head>
>
> <frameset>
> <frame name="body" src="loginpage.aspx" onload="populate()">
> </frameset>
>
> </html>
>
> I've tested this code locally, and it works. However, I'm not sure it

would
> work if the frameset and login page are in different domains, as this

would
> be a security risk.
>
> Hope this helps,
>
> Mun
>
>
>
>
> "Paul M." <(E-Mail Removed)> wrote in message
> news:brh7hi$c03$(E-Mail Removed)...
> > Hi,
> > we have 2 www systems one which we wrote ourselves the other is a

> parent
> > company one over which we have no control. The 2nd system involves the

> user
> > having to enter a username & password in a login screen. Is there any

way
> of
> > calling the 2nd systems login page and having the username & password be
> > inserted automatically? This auto passing in of information might also

be
> > applied to optins selection so instead of manually clicking on several
> > buttons to get to where we want to go we just send a string with the

> options
> > included.
> >
> > I have checked and there seems to be no facility for page parameters in

> the
> > 2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.
> >
> > Thanks in advance
> > Paul M.

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP OEM Login->Activation->Automatic Logout->Login->Activat Pedro Tiago Lopes Windows XP General 0 7th Jun 2008 03:27 PM
Automatic login Ian Warhaftig Microsoft Outlook Discussion 1 9th Feb 2008 12:23 PM
Automatic login Hans Näslund Microsoft Windows 2000 2 9th Apr 2006 10:08 AM
Automatic Login to Windows 2K without CTL, ALT, DEL Login Window =?Utf-8?B?TVdBQ1NOWQ==?= Microsoft Windows 2000 1 21st Apr 2005 08:42 PM
Automatic Login Anonymous Microsoft Windows 2000 1 11th Aug 2004 04:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:58 PM.