RE: "variable does not exist"

2000-08-10 Thread Lon Lentz


  
  
  

  

Lon Lentz
Applications Developer - Alvion Technologies
DataWarehousing and List Sales - Market Your Lists on the Net!
[EMAIL PROTECTED]
941-574-8600 Ext. 210

-Original Message-
From: Jamie Symonds [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 10, 2000 9:53 AM
To: [EMAIL PROTECTED]
Subject: "variable does not exist"

This is secure.cfm:





Is there a way that I can say [if variable Session.User does
not exisit, create Session.User with value ""]?  This would
default to login.cfm?

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.



RE: "variable does not exist"

2000-08-10 Thread Philip Arnold - ASP

> I have a
> 
> at the top of my cfm templates.
>
> This is secure.cfm:
> 
> 
> 
> 
>
> The small secure app that I've been using is working well,
> except for when the variable Session.User does not exist -
> for example, I have a page called info.cfm (with the
> cfinclude for secure.cfm) - If I load up my browser, enter
> the URL and file name (info.cfm), I would like for it to
> default to login.cfm and prompt for a login, not display an
> error message (The session variable USER does not exist.)  I
> also get the same when the session times out.
>
> Is there a way that I can say [if variable Session.User does
> not exisit, create Session.User with value ""]?  This would
> default to login.cfm?

 the variable or use isDefined()

Also, don't put , put 
Otherwise you're forcing CF to put the variable into a string, which means
you should work out things like balancing the apostrophies

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.