Forum - Beitrag anzeigen

CF-Basics - RE: application.cfm

Icon Pfeil Startseite Icon Pfeil Kategorie Icon Pfeil Suche

Icon Forum Beitrag vom 16.11.2001 10:16 (361 Aufrufe)
Name: kall
Titel: RE: application.cfm
Inhalt: Hi Claus,
es hat nicht richtig funktioniert...

-------
application.cfm
-------

<CFSETTING ENABLECFOUTPUTONLY="yes">

<cfapplication name="myApp"
sessionmanagement="yes"
sessiontimeout="#CreateTimeSpan(0,0,0,10)#">

<cfif NOT IsDefined("Session.LoggedIn")>
<cflocation url="../login.cfm">
</cfif>

<cfif not session.loginOk and getFileFromPath(CGI.script_name) neq "login.cfm">
<cflocation url="login.cfm">
</cfif>

<CFSETTING ENABLECFOUTPUTONLY="No">



--------
Login_actio.cfm
--------

<html>
<head>
<title>x</title>
</head>
<body bgcolor="00005a" text="dedede" link="00cc00" alink="009900" vlink="009900" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<CFIF NOT IsDefined("Form.bn") OR NOT IsDefined("Form.pw")>
<CFLOCATION URL="login.cfm">
</CFIF>

<CFQUERY NAME="user_login" DATASOURCE="mvbdb">
SELECT ID_Mitarbeiter, Name, Vorname, Passwort
FROM Mitarbeiter
WHERE Benutzername = '#form.bn#' AND Passwort = '#form.pw#'
</CFQUERY>

<!---If it was an invalid login, send them back to the login page --->
<CFIF user_Login.RecordCount IS "0">
<CFLOCATION URL="login.cfm">
</cfif>

<!----set Session variables---->
<CFSCRIPT>
Session.ID_Mitarbeiter = user_login.ID_Mitarbeiter;
</CFSCRIPT>

<!--- Send the user on --->
<CFLOCATION URL="save/start.cfm" ADDTOKEN="Yes">

</body>
</html>




--------
Felermeldung
--------

Error Diagnostic Information
An error occurred while evaluating the expression:

Session.ID_Mitarbeiter = user_login.ID_Mitarbeiter;

Error near line 24, column 3.
--------------------------------------------------------------------------------
Attempt to access a Session variable when session management is not enabled. Use the CFAPPLICATION tag to enable session management.

Note: This feature may have been disabled by the site administrator.

The error occurred while processing an element with a general identifier of (CFSCRIPT), occupying document position (23:1) to (23:10) in the template file D:\...\login_action.cfm









Antworten
Icon Forum application.cfm (kall, 15.11.2001 14:40)
   Icon Forum RE: application.cfm (frank26, 15.11.2001 14:50)
     Icon Forum RE: application.cfm (kall, 15.11.2001 15:09)
       Icon Forum RE: application.cfm (frank26, 15.11.2001 15:31)
         Icon Forum RE: application.cfm (kall, 15.11.2001 15:58)
           Icon Forum RE: application.cfm (frank26, 15.11.2001 16:24)
             Icon Forum RE: application.cfm (kall, 15.11.2001 16:43)
             Icon Forum RE: application.cfm (Claus, 15.11.2001 16:43)
               Icon Forum RE: application.cfm (kall, 15.11.2001 17:26)
                 Icon Forum RE: application.cfm (Claus, 15.11.2001 18:36)
                   Icon Forum RE: application.cfm (kall, 16.11.2001 10:16)
                     Icon Forum RE: application.cfm (Claus, 16.11.2001 10:41)
                       Icon Forum RE: application.cfm (kall, 16.11.2001 11:34)
                         Icon Forum RE: application.cfm (Claus, 16.11.2001 11:51)
                           Icon Forum RE: application.cfm (kall, 16.11.2001 12:15)
                             Icon Forum RE: application.cfm (Claus, 16.11.2001 12:26)
                               Icon Forum RE: application.cfm (kall, 16.11.2001 13:38)
                                 Icon Forum RE: application.cfm (Claus, 16.11.2001 14:17)
                                   Icon Forum RE: application.cfm (kall, 16.11.2001 14:28)
                                     Icon Forum RE: application.cfm (Claus, 16.11.2001 14:35)
   Icon Forum RE: application.cfm (martin janssen, 15.11.2001 16:20)
     Icon Forum RE: application.cfm (kall, 15.11.2001 16:22)
   Icon Forum RE: application.cfm (martin janssen, 16.11.2001 11:30)

Bitte melden Sie sich kostenlos an, um eine Antwort auf diesen Beitrag zu erstellen.


Das deutsche ColdFusion-Forum cfml.de ist das Portal für Einsteiger und Experten zum Thema ColdFusion und der ColdFusion Markup Language (CFML).

© 2017 Webdesign & Hosting: CHC ONLINE Kassel | SOLVA Content-Management-System CMS
Urlaub-Angebote.de - Urlaub mit Bestpreis-Garantie buchen