kwilliams Posted June 30, 2006 Share Posted June 30, 2006 I have a page that's written in ASP with VB syntax. I'd like to create a script or function that redirects the user to a logoff page before their session.timeout = 0. That's because the logoff page will add a 'False' flag to a DB table in SQL Server 2k with the use of their AccountID. Does anyone know of an easy way to do this? Thanks for any help. Link to comment Share on other sites More sharing options...
janzwaantje Posted July 1, 2006 Share Posted July 1, 2006 every connection on the page must be closed.Dim oConn, sConnection Set oConn = Server.CreateObject("ADODB.Connection")sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=\\premfs?\sites\premium?\UserName\database\data.mdb;" & _ "Persist Security Info=False"oConn.Open(sConnection)'every connection on the page must be closed.oConn.CloseSet oConn = nothingfor session end:http://www.heelom.com/Echo/zoekrobot/?k=Session_OnEnd Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now