Guest_imported
New member
- Jan 1, 1970
- 0
Hi There:
I am getting an error while logging in
it says
"Symbol session.logged is in a scope that contains data shared across threads and cannot be accessed without an active lock"
my login.cfm code is given below
------------
<cfparam name="action" default="">
<html>
<head><title>Login</title></head>
<body>
<cfif action is "login">
<cfquery name="checklogin" datasource="intervox">
select * from user
where login='#login#' and password='#password#'
</cfquery>
<cfif checklogin.recordcount>
<cfset session.logged=1>
<cfset session.login=form.login>
<cfquery name="username" datasource="intervox">
select * from user where login like '#session.login#'
</cfquery>
<cfquery name="logdel" datasource="intervox">
Insert into logtable
(user,action,when)
values
('#username.firstname#','Logged In',#now()#)
</cfquery>
<cflocation url="mainpage.cfm" addtoken="yes">
<cfelse>
We do not have a member with the information you provided.<br>
Please try again.
</cfif>
</cfif>
<cfoutput>
<form action="login.cfm?cfid=#cfid#&cftoken=#cftoken#" method="post">
</cfoutput>
<p align="center"> <img src="ivx1.jpg">
<p align="center"><b>Information System for Intervox Officials.</b>
<table align="center" bgcolor="#990033" cellspacing="2" cellpadding="2" border="0">
<tr>
<TD>
<P><FONT face=Arial><FONT
color=#ffff00><STRONG>Login</STRONG></FONT>:<INPUT maxLength=6 name=Login
size=7>&nbsp;&nbsp;<FONT
color=#ffff00><STRONG>Password</STRONG>&nbsp;</FONT></FONT>&nbsp;<INPUT
maxLength=6 name=Password size=7 type=password></P>
&nbsp;&nbsp;&nbsp<INPUT type=submit value="Login Now">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type=reset value=Reset></TD>
</tr><input type="hidden" name="action" value="login">
</table></P></FORM>
</body>
</html>
-----------------------
Please help me solve it at the earliest.
Thanx
GG
I am getting an error while logging in
it says
"Symbol session.logged is in a scope that contains data shared across threads and cannot be accessed without an active lock"
my login.cfm code is given below
------------
<cfparam name="action" default="">
<html>
<head><title>Login</title></head>
<body>
<cfif action is "login">
<cfquery name="checklogin" datasource="intervox">
select * from user
where login='#login#' and password='#password#'
</cfquery>
<cfif checklogin.recordcount>
<cfset session.logged=1>
<cfset session.login=form.login>
<cfquery name="username" datasource="intervox">
select * from user where login like '#session.login#'
</cfquery>
<cfquery name="logdel" datasource="intervox">
Insert into logtable
(user,action,when)
values
('#username.firstname#','Logged In',#now()#)
</cfquery>
<cflocation url="mainpage.cfm" addtoken="yes">
<cfelse>
We do not have a member with the information you provided.<br>
Please try again.
</cfif>
</cfif>
<cfoutput>
<form action="login.cfm?cfid=#cfid#&cftoken=#cftoken#" method="post">
</cfoutput>
<p align="center"> <img src="ivx1.jpg">
<p align="center"><b>Information System for Intervox Officials.</b>
<table align="center" bgcolor="#990033" cellspacing="2" cellpadding="2" border="0">
<tr>
<TD>
<P><FONT face=Arial><FONT
color=#ffff00><STRONG>Login</STRONG></FONT>:<INPUT maxLength=6 name=Login
size=7>&nbsp;&nbsp;<FONT
color=#ffff00><STRONG>Password</STRONG>&nbsp;</FONT></FONT>&nbsp;<INPUT
maxLength=6 name=Password size=7 type=password></P>
&nbsp;&nbsp;&nbsp<INPUT type=submit value="Login Now">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type=reset value=Reset></TD>
</tr><input type="hidden" name="action" value="login">
</table></P></FORM>
</body>
</html>
-----------------------
Please help me solve it at the earliest.
Thanx
GG