As I said in my
Member-Only Pages you should make sure to close the connection to the database.
you can do this by adding the following line to your code:
<% @ Language=VBScript %> <% Option Explicit %> <!--#include file="common.asp" --> <% If blnGuest AND blnGuestSessions = True Then Call closeDatabase() response.Redirect("login_user.asp") End If %> |
Though you dont need the Guest Sessions part as i believe that relates to the ?SID=245435645 in URLs, and I simply used the
lngLoggedInUserID = 2 in my tutorial which is the "Guest" members Author ID in the database.
You could also adapt this so that you could enter it into the common.asp file, with an added variable blnNoLogin which you would add to pages such as registration pages and the login page its self, like so:
blnNoLogin = true