I am trying to implement a way of handling the fact that I have set the users session to timeout after 20 minutes. I would like to place a piece of code at the top of a page that checks if a session object exists - session("login" in this case. If it doesnt, the timeout.htm page should be opened and the user asked to login in again.
The following code gives this error "Object required: 'window' "
<%
if not session("login" then
dim NewWindow
set NewWindow = window.open timeout.htm","subWind","height=200,width=400,status=yes, toolbar=no,menubar=no,location=no"
newwindow.focus()
end if
%>
I have tried specifying that the script is vbscript within script tags but then the session object cannot be referenced.
Any ideas on how I can get this working?
Thanks in advance
jan
The following code gives this error "Object required: 'window' "
<%
if not session("login" then
dim NewWindow
set NewWindow = window.open timeout.htm","subWind","height=200,width=400,status=yes, toolbar=no,menubar=no,location=no"
newwindow.focus()
end if
%>
I have tried specifying that the script is vbscript within script tags but then the session object cannot be referenced.
Any ideas on how I can get this working?
Thanks in advance
jan