Well, actually I guess it also involves sessions variables, something I
have not used before. Any help would be appreciated.

James Taavon wrote:
> 
> Hello.
> 
> I want users who have logged into my app to have their login saved so
> they do not have to re-login after coming back to the main screen which
> contains a link to the login page (login.cfm). So, what I am supposing
> is that when a user clicks on the hyperlink to the login screen have
> that file check to see if that user has logged in and if so pass them on
> to the proper destination file without having them re-login again. I
> will probably set the variable to 20 minutes until requiring re-login.
> Thanks in advance for your assistance.
> 
> MAIN SCREEN FILE
> ------------------------------------------------------------------------------
> <cfquery name="GetAgency" datasource="OIM">
>         select *
>         from oimdbadmin.agency
> </cfquery>
> 
> <cfquery name="GetRequest" datasource="OIM">
>         select *
>         from oimdbadmin.reqtype
> </cfquery>
> <div align="center">
> <img src="oim_title.jpg">
> </div>
> 
> <blockquote><font face="arial" color="Navy" size="2">
> <b>Welcome to the New OIM Time Manangement System for DLLR. Use the form
> below to submit a new work order request. Once completed you will
> receive an email confirming your request. <u>OIM Authorized
> Personnel</u> click on the link below to access the assignment and work
> order area.
> <p>
> NOTE: If you need technical assistance, completing the Office of
> Information and Management's (OIM) on-line work order system, requester
> Roger Hub 410.767.2020 or Klaus Reichelt 410.230.6347. OIM looks forward
> to serving you and your staff.
> <br>
> <br>
> For further instruction on how to use this request form, click on the <a
> href="javascript:newWindow()">Read Me!</a></b>
> </font>
> </blockquote>
> 
> <a href="login.cfm"><img src="authorize.jpg" alt="OIM Authorized
> Personnel Access" border="0"></a>
> <br>
> <a href="status_results.cfm"><img src="request_status.jpg" alt="Status
> Of Requests" border="0"></a>
> <br>
> <br>
> 
> .......
> 
> LOGIN FILE
> ------------------------------------------------------------------------------
> 
> <form action="oim_access.cfm" method="POST">
> <table cellpadding="2">
> <tr>
> <td><font face="Arial" size="2">
> <b>User ID:</b></font> <td><input type="Text" name="userid" size="10"
> maxlength="20"></td>
> </td>
> <tr>
> <td><font face="Arial" size="2">
> <b>Password:</b></font> <td><input type="Password" name="password"
> size="10" maxlength="10"></td>
> </td>
> </tr>
> <tr><td align="center" colspan="2"><input type="Submit" value="Click to
> Login"></td></tr>
> </table>
> </form>
> 
> VALIDATION FILE
> ------------------------------------------------------------------------------
> 
> <cfquery name="Authorize" datasource="OIM">
>         select * from oimdbadmin.access
>         where   userid = '#userid#' and
>                         password = '#password#'
> </cfquery>
> 
> <cfif authorize.recordcount is 0>
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Error! You have entered an invalid ID or Password!!');
> location.href = ('login.cfm');
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "oim">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('new_managers.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "jtaavon">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level2.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "gmamayek">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level2.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "webmaster">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level2.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "pmarcher">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level2.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "kbrooks">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level1.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "plamartina">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level1.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "crodriguez">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level1.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "suri">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level1.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> 
> <cfelseif #form.userid# IS "mwilliams">
> 
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> <!--
> alert ('Login Successful!!');
> <cfoutput>
> location.href = ('staff_level2.cfm?user=#form.userid#');
> </cfoutput>
> //-->
> </SCRIPT>
> </cfif>
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to