Does anybody know how properly setup a session variable? I want to setup
session var in one page and check if it exists using IsDefined
("session.uid") in another page. In the application.cfm
I have session management opened:

<CFAPPLICATION NAME="Feedback"
SETCLIENTCOOKIES="Yes"
APPLICATIONTIMEOUT="#CreateTimeSpan(1,0,0,0)#"
SESSIONMANAGEMENT="Yes"
SESSIONTIMEOUT="#CreateTimeSpan(0,8,0,0)#">
<CFSETTING SHOWDEBUGOUTPUT="no">


The variable is setup in login.cfm

<CFLOCK TIMEOUT="5" THROWONTIMEOUT="Yes" TYPE="ReadOnly" SCOPE="SESSION">
        <CFSET session.uid = GetUser.uid>
        <CFSET request.uid = session.uid>
    </CFLOCK>


When I check session.iud in another page (index.cfm) it always does not
exist:

<CFIF (NOT IsDefined("session.uid"))>
          <CFINCLUDE TEMPLATE="forms/login.cfm">
    </CFIF>
As a result my login screen alwas opens. Please help.


Henry



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to