|
I don't have the solution but I do have a little more info. Logically you need to separate Toolbox signon processing with browser/servlet processing. The signon you see is probably the browser/web server signon. Via a feature of the web server, your program tells it to gather uid/pwd information from the user via the browser. My guess is your code then feeds this uid/pwd to the Toolbox for the Toolbox connection to the AS/400. To re-prompt you need to force the web server / browser to re-prompt the user. This is independent of the Toolbox. AS400.disconnectAllServices is a Toolbox thing and affects only connections from the Toolbox to the AS/400. It does not affect the web server / browser uid/pwd cache. I hope that helps a little. I know it seems that the browser's uid/pwd cache is flushed only at random times. At least in Netscape that is due to they have one daemon process that saves common info for each instance of the browser. If I sign-on to a protected page I can access that page from any browser instance. I am not re-prompted until all browser instances and the daemon process go away. At times I have to manually kill the daemon process using the task manager to get Netscape to clean up enough so I get a fresh start. David Wall AS/400 Toolbox for Java Martinus Ivan <IVANM@MULTIPOLAR.CO.ID> on 05/03/2000 05:36:10 AM Please respond to JAVA400-L@midrange.com To: "'JAVA400-L@midrange.com'" <JAVA400-L@midrange.com> cc: Subject: Login/Logoff for AS/400 Servlet Hi All, I create a servlet that add record to AS/400 file from Browser and it working great (using toolbox and RecordLevel Access). Now I try to add a Logoff/Login function, once the logoff button pressed, the next request to write to AS/400 is supposed to pop-up a login box again. Here is what I got : OBSERVATION : The login pop-up only appear once for the first request after I start the servlet engine (JWSDK 1.0.1 on PC). But for next request or if I close and re-open the Browser it won't pop-up the login box again. I'm pretty sure I disconnectAllService() on my servlet (and watch no suspicios job hang on wrkactjob) The only way to make it show up again is to stop and re-start the servlet engine. QUERY : Could someone share the experience on how to create a logoff and login Process, what technique should I use ? I'm expecting the login box can appear many times for one servlet instance. Thank you in advance for your help. regards, Ivan. L +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.