On 8/2/01, JAIME HOI penned:
>i tried to log in twice using 2 different user_ids. The data from user_1
>can be seen by user_2. It seems like they are still retriving my local disk
>instead of from the server. Why is this so ??

It's possible it could be your login scheme. For instance, if using 
session variables and you have something like:

<cfquery name="login" datasource="mydsn">
SELECT user_id
FROM logins
WHERE user_name='#form.user_name' and
user_password='#form.user_password#'
</cfquery>

<cflock scope="session" type="exclusive">
<cfif login.recordcount is 1 and not isdefined('session.user_id')>
<cfset session.user_id = login.user_id>
</cfif>
</cflock>

In the scenario above, if the session hasn't expired from user_1, 
then session.user_id wouldn't be set to user_2 because of the not 
isdefined condition. Or if the whole thing was wrapped in <cfif not 
isdefined('session.user_id')> then the login query wouldn't even run.

Just a stab in the dark. :)
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to