Discussion Locked

creating telnet session from javascript

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have to authenticate users from the webpage.I've
created the screen using javascript.The users who
want to use the application should login using their user id.Their ids are in solaris machine.
my program is also in the solaris machine.I want
to create a telnet session after I press the submit button automatically to authenticate the
user.How should it be done?

7 replies

by jay eckles

Telnet is a stateful application protocol, and HTTP (the web) is a stateless application protocol. To try to run a telnet session over HTTP doesn't make sense.

If you're convicted to make this happen, the best I could think of is to use an applet/servlet combination, and try to pass the data from the servlet which maintains the telnet connection to the applet via a socket. I'm not sure if that will work - I don't think so, but you never know.

Javascript isn't going to do a thing for you here - you can't launch an application with Javascript (like the user's telnet client), and you can't communicate with a server easily via Javascript.

I would definitely reevaluate your requirements and take a different development route. Whatyou're trying to do is not going to work well.

Good luck.

Jay
www.jayeckles.com

by lrund

Many colleges use Telnet over HTTP for their internal library systems with included security via SSL. I have logged onto a few college sites with this ability and seen demos of the products but don't know the inner workings.
There is a site however that sells the software for telnet emulation over HTTP. http://www.seagullsw.com/
Hope this takes you in the right direction.

by parkin_thom

You can initiate a Telnet session (using the local Telnet client of the user's machine) with this HTML code:
Start Session

In case the HTML Tags did not render that is:
<a href="telnet:xxx.xx.xxx.xxx">Start</a> Session

This discussion is closed to new replies.