----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: vivek Message 2 in Discussion Hi Friends Where r dot net gurus .... Please give me some suggestion on this topic. Ur Suggestions are highly appreciated............ : : I am creating a web application using asp.net and using the feature of : windows authentication in my project. Its run successfully. But my client : requirement is use some link button also so that member can logout from the application on click of link button programmatically without closing : internet browser and after logout again window authentication dialog box : appeared. I have tried this by some code from net "http://support.microsoft.com/?id=195192" but it doesn't work. I am using digest Authentication in ASP.NET application. : : '---in form level------------- : : Public Declare Function InternetSetOption Lib "wininet.dll" Alias : "InternetSetOptionA" _ : (ByVal hInternet As Long, ByVal lOption As Long, ByRef sBuffer As Object, _ : ByVal lBufferLength As Long) As Integer : ' Douglas Adams fans, take note! : Public Const INTERNET_OPTION_END_BROWSER_SESSION = 42 : : : Public Function flushCredentials() As Integer : ' Passing NULL makes this true for all connections in the host : process. : Dim h As Integer : 'InternetSetOption(vbNull, INTERNET_OPTION_END_BROWSER_SESSION, : vbNull, 0) : h = InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0) : flushCredentials = h : End Function : : : Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As : System.EventArgs) Handles LinkButton1.Click : flushCredentials() : End Sub : : : Please give me a alternative solution or correct my above code, how a member can logout and again window authentication dialog box appeared. : : Give me some sample code or links of asp.net implementation. : : Thanks in Advance.... : : With Warm Regards : Vivek _________________________________________________________________ Free drafts to 700 locations. http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click here. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
