Public Function LOGOUT(ByRef form As Object, ByVal u_id As String) As Boolean
If nDBCON.DB_Connect(intranet_Web.s_Server, intranet_Web.s_User, intranet_Web.s_Pass, intranet_Web.s_ASYDB) <> "PASS" Then
''''MsgBox("Don't Connect to Data Base", MsgBoxStyle.OkOnly, "Connection Error")
form.Session.clear ()
form.Session.Contents.Remove("UserId")
form.Session.Contents.Remove("Name")
form.Session.Contents.Remove("Lname")
form.Session.Contents.Remove("Email")
Return False
nDBCON.DisConnect_rtn()
Exit Function
End If
Protected Sub cmdexit_click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles cmdexit.Click
' Take some action based on the response.
'MsgBox("YES, continue!!", , Title)
'Call LOGOUT(Me, Session("UserId"))
Dim dmStrScript As String
Session.Clear()
Session.Contents.Remove("UserId")
Session.Contents.Remove("Name")
Session.Contents.Remove("Lname")
Session.Contents.Remove("Email")
Response.redirect(MMMM.aspx)
End Sub
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="INTCONN" connectionString="Server=000000;Database=000000;User ID=000000;Password=000000;"
providerName="System.Data.SqlClient" />
<add name="INTRANETConnectionString" connectionString="Data Source=000000;Initial Catalog=000000;Persist Security Info=True;User ID=intranet;Password=int1685"
providerName="System.Data.SqlClient" />
<add name="INTRANETConnectionString1" connectionString="Data Source=000000;Initial Catalog=INTRANET;Persist Security Info=True;User ID=000000;Password=000000"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
<customErrors mode="Off"/>
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<!-- <authentication mode="Windows"/> -->
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<!-- <sessionState ................. timeout="90" /> -->
</system.web>
</configuration>