-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: vivek
Message 1 in Discussion
Hi Friends
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 by some code 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
_________________________________________________________________
NRI�s, Free Money transfer to India.
http://server1.msn.co.in/msnleads/citibankrca/citibankrca2.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]