BeBe 发表于 2005-6-1 08:59

[?] Automatic login within LoginPagejsp

Could someone help with this:
a webpage named LoinPage.jsp need username and password then enter to login.
I would like to do all this automatically in the URL line like:
http://www.testpage.com/LoginPagejsp?username=myname password=mypwd

sothat i can put that link on my desktop, and for one click then open the page already loged in it.

Is that possible? maybe some expert here can help me that...

Thanks in advance.

xiaobailong 发表于 2005-6-1 21:00

偶不是专家,但以前做过一点jsp编程,试着回答一下:

把用户名和密码放在URL里,这个比较困难一点吧,除非你确切知道登陆页面是如何编写的。

1。有时候登陆页面有些暗藏的变量,是经过这个页面才会被赋予特定值的,而且不会显示在URL连接里。
2。有些密码是加密发送的。
3。就算以上都不是,也不应该有页面是直接把密码放在URL里的。否则这个程序员一定丢饭碗。

像德国热线这样,进入页面就知道是哪个用户登陆的,(免用户名和密码输入),应该是放了coockie在我们的机器里的吧?

BeBe 发表于 2005-6-1 22:23

噢。。。原来如此。
看来没戏了。
多谢 小白龙 !
页: [1]
查看完整版本: [?] Automatic login within LoginPagejsp