Hello,
i have a site using sessions to login. The server is set up to remove sessions after 30 minutes but it seems sessions are often deleted after a few seconds or minutes and I can't figure out why.
I am using a global.asa file on this site, I am not too familiar with this and I am wondering if this could cause an error:
Code:
<SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
function Session_OnStart()
{
Session.Timeout=60
}
var adoConnection = Server.CreateObject("ADODB.Connection");
adoConnection.Open("dsn=xxx;uid=xxx;pwd=xxxxx;");
function Session_OnEnd()
{
var removeL = "DELETE FROM tbllogged WHERE sesId = '"+String(Session.SessionID)+"'";
adoConnection.Execute(removeL)
}
function Application_OnStart()
{
//clear the logged table when the server restarts
var clearL = "DELETE FROM tbllogged";
adoConnection.Execute(clearL);
}
</script>
Or else what should I look out for, I just can't figure out why those sessions would be removed?
many thanks