It's possible that these users are timing out, but there's no way to know for sure. What is your Session timeout set for? Unless you are overriding this in code, you should be able to find it in the Configuration page of the FoxWeb Control Center. You should set this value to a high enough number, so that your users don't timeout between requests. The Auth.Timeout can be lower and will simply force user to re-login, without disrupting the regular flow of their session.
By the way, the way you are using the Auth object is incorrect. Checking the value of Auth.userid does not ensure that the user is authenticated properly. The right technique is to call the Auth.Authenticate method at the top of EACH page that needs to be protected. The easiest way to do this is to include all necessary code in a common file, which gets called for all protected scripts:
Here's a sample common authentication file (login.fwx):
<% Auth.AuthTable = "c:\data\users.dbf" Auth.Header = "You are entering a protected area. Please authenticate yourself." Auth.Footer = '© ACME Corporation 1998-2000' Auth.Authenticate() %> |
Here's how your script should be modified:
<%server.Execute('login.fwx')%> <body> <center> <img src="/images/wtlogosmall.gif"><br> <font name="Tahoma" size="2">| <a href="login.fwx?logout=1&<%=SYS(3)%>">Logout</a> |</font> </center> <% if not used('sign.dbf') use \sign.dbf in 0 alias signTable again endif cName = '' cAddress = '' cCity = '' cWork = '' cUserEmail = upper(trim(Auth.userid))+"@wirelesstoyz.com" %> etc.. etc.. |
FoxWeb Support Team support@foxweb.com email |
Sent by Ali Koumaiha on 06/21/2005 07:38:04 AM:
I have a form which contains some options the users can select and then there is a submit button.
when submit is click the form's content gets sent via email.
however, some users are experiencing that when they click on the submit button, they are being transfered to the login.fwx screen.
i have this in the beggining of the page.
<%
if empty(Auth.userid)
server.Transfer('login.fwx')
endif
%>
<body>
<center>
<img src="/images/wtlogosmall.gif"><br>
<font name="Tahoma" size="2">| <a href="login.fwx?logout=1&<%=SYS(3)%>">Logout</a> |</font>
</center>
<% if not used('sign.dbf')
use \sign.dbf in 0 alias signTable again
endif
cName = ''
cAddress = ''
cCity = ''
cWork = ''
cUserEmail = upper(trim(Auth.userid))+"@wirelesstoyz.com"
%>
etc.. etc..