RE: Points of failure for session variables

2001-10-02 Thread Chris Norloff

Yes, just reading session.QueryName would be a read.

But cfquery name=session.QueryName ... is a write into the session scope.

Or at least that's what MM Tech Support told me, and it made sense so I exclusive 
locked it.

Chris Norloff


-- Original Message --
from: Daye, Marianne [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
date: Tue, 2 Oct 2001 10:57:31 -0400 

Chris, what did you mean when you said that a query with a name of
application.queryname is a 'write'.  Doesn't that depend on what you do with
it?  If I loop through session.QueryName, but only read the values, is that
not a 'readonly' for locking purposes?

Marianne Daye
Programmer/Analyst
Information Delivery Systems (IDS)
http://ids.rti.org
(919) 541-8031


-Original Message-
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 9:07 AM
To: CF-Talk
Subject: Re: Points of failure for session variables


Manually locking all reads and writes (locking by scope) is good.  Beware of
things that might not look like writes - like a query with a name of
application.queryname is actually a write into the application scope.

Also, use the Duplicate() function with CFSET whenever making a copy of a
complex variable (arrays  structures, at least.  Allaire/MM say queries are
complex, other folks say they're not).  If you don't use Duplicate() when
copying complex variables your copy is a pointer to the original rather than
a real copy.

And test for session validity at the beginning of every request.

best,
Chris Norloff

-- Original Message --
from: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
date: Sun, 30 Sep 2001 17:30:46 -0700

Of course I've used system variables several times in the past, but never
in
an application where their proper functioning is absolutely necessary,
until
now.

The application I'm building now relies heavily on session variables and
will fail if variables are not properly passed.

Of course, I'm using CFLock around all session variables (both read and
write).

Besides that, I'm wondering are their other problems to look and plan for?
Is it possible that session variables will not work with some clients? If
so, under what conditions. How do you plan for such possible failures?

I just want to do my best to cover all of the bases here.

H.



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Points of failure for session variables

2001-10-01 Thread Chris Norloff

Manually locking all reads and writes (locking by scope) is good.  Beware of things 
that might not look like writes - like a query with a name of application.queryname is 
actually a write into the application scope.

Also, use the Duplicate() function with CFSET whenever making a copy of a complex 
variable (arrays  structures, at least.  Allaire/MM say queries are complex, other 
folks say they're not).  If you don't use Duplicate() when copying complex variables 
your copy is a pointer to the original rather than a real copy.

And test for session validity at the beginning of every request.

best,
Chris Norloff

-- Original Message --
from: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
date: Sun, 30 Sep 2001 17:30:46 -0700

Of course I've used system variables several times in the past, but never in
an application where their proper functioning is absolutely necessary, until
now.

The application I'm building now relies heavily on session variables and
will fail if variables are not properly passed.

Of course, I'm using CFLock around all session variables (both read and
write).

Besides that, I'm wondering are their other problems to look and plan for?
Is it possible that session variables will not work with some clients? If
so, under what conditions. How do you plan for such possible failures?

I just want to do my best to cover all of the bases here.

H.

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Points of failure for session variables

2001-10-01 Thread PEREZ, RICHARD D (SBCSI)

There is also an issue if you have several servers. Session variables are
not really a good use... for it is only being stored on one server and won't
be available on the other server. And the best option here is either use a
Cookie or a Client variable.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 5:31 PM
To: CF-Talk
Subject: Points of failure for session variables


Of course I've used system variables several times in the past, but never in
an application where their proper functioning is absolutely necessary, until
now.

The application I'm building now relies heavily on session variables and
will fail if variables are not properly passed.

Of course, I'm using CFLock around all session variables (both read and
write).

Besides that, I'm wondering are their other problems to look and plan for?
Is it possible that session variables will not work with some clients? If
so, under what conditions. How do you plan for such possible failures?

I just want to do my best to cover all of the bases here.

H.

~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Points of failure for session variables

2001-10-01 Thread Dennis Powers

Howard,

Keep this axiom in mind when developing your application: The Web is
Stateless. Each page request is independent and isolated from each other.
The only way to maintain state is for the web browser to tell the server who
it is.  This is done either with cookies, URL variables or form fields.  In
all cases the web browser is telling the server who it is so that the server
can determine what should be done.

Cold Fusion uses two tokens to maintain state: CFID and CFTOKEN.  They are
assigned on the first request and if enabled CF attempts to send them to the
browser as cookies.  On each subsequent request the browser sends them back.
In this way CF can maintain state and allows you to use both Session
Variables (stored in memory) or Client Variables (stored in a database).

If the browser won't accept cookies then the browser needs to pass those
tokens back to the server as a URL variable or as (hidden) form fields.

The obvious down side to using URL variables is that someone can have their
session hijacked if they send the link to someone else. The link will look
something www.somedomain.com/mypage.cfm?CFID=234CFTOKEN=820123 which is
someone else's session.

It's not a perfect world we Internet gurus work in smile.


Best regards,

Dennis Powers
UXB Internet
(203)879-2844
http://www.uxbinfo.com/

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 10:18 PM
To: CF-Talk
Subject: RE: Points of failure for session variables

Thanks, Jim.

No cookies. No clusters.


-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 5:39 PM
To: CF-Talk
Subject: Re: Points of failure for session variables


If you're relying on cookies to implement session variables, then there are
a lot of ways that cookies can be blocked or otherwise not passed from
server to client or vise versa.  Hardware firewalls, software firewalls,
proxy servers, browser settings are a few.  Then there are issues at the
server end... clustering, load balancing.

Jim


~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Points of failure for session variables

2001-10-01 Thread Owens, Howard

I under stand about statelessness ... 

As I understand it, there are two types of cookies -- cookies that are
written the client's disk and cookies that are session cookies and are
stored in the browser (and therefore lost when the browser is closed).

My assumption is, in using session variables, you are relying on these
session cookies.

I wonder how often session cookies are blocked.  And if they are blocked,
what are the consequences to the application.

I'm seeing a lot more cookie blocking on some other sites.

So do session variables relying on session cookies?  Will session variables
work if all cookies are blocked?

H.



Howard Owens
Internet Operations Coordinator
www.insidevc.com
[EMAIL PROTECTED]
AIM: GoCatGo1956


 -Original Message-
 From: Dennis Powers [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, October 01, 2001 12:31 PM
 To:   CF-Talk
 Subject:  RE: Points of failure for session variables
 
 Howard,
 
 Keep this axiom in mind when developing your application: The Web is
 Stateless. Each page request is independent and isolated from each other.
 The only way to maintain state is for the web browser to tell the server
 who
 it is.  This is done either with cookies, URL variables or form fields.
 In
 all cases the web browser is telling the server who it is so that the
 server
 can determine what should be done.
 
 Cold Fusion uses two tokens to maintain state: CFID and CFTOKEN.  They are
 assigned on the first request and if enabled CF attempts to send them to
 the
 browser as cookies.  On each subsequent request the browser sends them
 back.
 In this way CF can maintain state and allows you to use both Session
 Variables (stored in memory) or Client Variables (stored in a database).
 
 If the browser won't accept cookies then the browser needs to pass those
 tokens back to the server as a URL variable or as (hidden) form fields.
 
 The obvious down side to using URL variables is that someone can have
 their
 session hijacked if they send the link to someone else. The link will look
 something www.somedomain.com/mypage.cfm?CFID=234CFTOKEN=820123 which is
 someone else's session.
 
 It's not a perfect world we Internet gurus work in smile.
 
 
 Best regards,
 
 Dennis Powers
 UXB Internet
 (203)879-2844
 http://www.uxbinfo.com/
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, September 30, 2001 10:18 PM
 To: CF-Talk
 Subject: RE: Points of failure for session variables
 
 Thanks, Jim.
 
 No cookies. No clusters.
 
 
 -Original Message-
 From: Jim McAtee [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, September 30, 2001 5:39 PM
 To: CF-Talk
 Subject: Re: Points of failure for session variables
 
 
 If you're relying on cookies to implement session variables, then there
 are
 a lot of ways that cookies can be blocked or otherwise not passed from
 server to client or vise versa.  Hardware firewalls, software firewalls,
 proxy servers, browser settings are a few.  Then there are issues at the
 server end... clustering, load balancing.
 
 Jim
 
 
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Points of failure for session variables

2001-10-01 Thread Dave Watts

 As I understand it, there are two types of cookies -- cookies 
 that are written the client's disk and cookies that are session 
 cookies and are stored in the browser (and therefore lost when 
 the browser is closed).
 
 My assumption is, in using session variables, you are relying on 
 these session cookies.

No, by default, the CFID and CFTOKEN cookies created by CF are persistent.

 Will session variables work if all cookies are blocked?

They can work, if the developer is careful to pass CFID and CFTOKEN values
from page to page consistently. CF doesn't care how you pass these values
from one page to the next - cookies make this easy, but if you can't rely on
cookies you can put the values in URL parameters.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Points of failure for session variables

2001-09-30 Thread howard

Of course I've used system variables several times in the past, but never in
an application where their proper functioning is absolutely necessary, until
now.

The application I'm building now relies heavily on session variables and
will fail if variables are not properly passed.

Of course, I'm using CFLock around all session variables (both read and
write).

Besides that, I'm wondering are their other problems to look and plan for?
Is it possible that session variables will not work with some clients? If
so, under what conditions. How do you plan for such possible failures?

I just want to do my best to cover all of the bases here.

H.
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Points of failure for session variables

2001-09-30 Thread Jim McAtee

If you're relying on cookies to implement session variables, then there are
a lot of ways that cookies can be blocked or otherwise not passed from
server to client or vise versa.  Hardware firewalls, software firewalls,
proxy servers, browser settings are a few.  Then there are issues at the
server end... clustering, load balancing.

Jim


- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, September 30, 2001 6:30 PM
Subject: Points of failure for session variables


 Of course I've used system variables several times in the past, but never
in
 an application where their proper functioning is absolutely necessary,
until
 now.

 The application I'm building now relies heavily on session variables and
 will fail if variables are not properly passed.

 Of course, I'm using CFLock around all session variables (both read and
 write).

 Besides that, I'm wondering are their other problems to look and plan for?
 Is it possible that session variables will not work with some clients? If
 so, under what conditions. How do you plan for such possible failures?

 I just want to do my best to cover all of the bases here.

 H.
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Points of failure for session variables

2001-09-30 Thread Mike Tangorre

I have a question semi related. I am studying CF while I finish up school
and was getting into how an e-commerce site works in terms of sessions and
what not. In an e-commerce site, is it best to not use cookies at all? What
is a good approach to an e-commerce site?

Mike

- Original Message -
From: Jim McAtee [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, September 30, 2001 8:39 PM
Subject: Re: Points of failure for session variables


 If you're relying on cookies to implement session variables, then there
are
 a lot of ways that cookies can be blocked or otherwise not passed from
 server to client or vise versa.  Hardware firewalls, software firewalls,
 proxy servers, browser settings are a few.  Then there are issues at the
 server end... clustering, load balancing.

 Jim


 - Original Message -
 From: [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Sunday, September 30, 2001 6:30 PM
 Subject: Points of failure for session variables


  Of course I've used system variables several times in the past, but
never
 in
  an application where their proper functioning is absolutely necessary,
 until
  now.
 
  The application I'm building now relies heavily on session variables and
  will fail if variables are not properly passed.
 
  Of course, I'm using CFLock around all session variables (both read and
  write).
 
  Besides that, I'm wondering are their other problems to look and plan
for?
  Is it possible that session variables will not work with some clients?
If
  so, under what conditions. How do you plan for such possible failures?
 
  I just want to do my best to cover all of the bases here.
 
  H.
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Points of failure for session variables

2001-09-30 Thread howard

Thanks, Jim.

No cookies. No clusters.


-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 5:39 PM
To: CF-Talk
Subject: Re: Points of failure for session variables


If you're relying on cookies to implement session variables, then there are
a lot of ways that cookies can be blocked or otherwise not passed from
server to client or vise versa.  Hardware firewalls, software firewalls,
proxy servers, browser settings are a few.  Then there are issues at the
server end... clustering, load balancing.

Jim

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session Variables and directories

2001-09-12 Thread Ben Densmore

I am currently working on an order entry app and created a login screen 
before a user can get to the actual app. When they login in I am 
creating several session variables which work, but once a person is 
logged in successfully they get taken to a page which is in another 
directory. So if the user is part of the sales dept they go to the sales 
directory, the problem I am having is once they go into that directory I 
can't read any session variables. Shouldn't these session variables be 
kept throughout the entire app even if it some of the pages are in 
different direcotries.

Thanks,
Ben Densmore

~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Session Variables and directories

2001-09-12 Thread cf refactoring

Did you check for a cfapplication tag in your sales
directory? it might very well be in your
Application.cfm file.

--- Ben Densmore [EMAIL PROTECTED] wrote:
 I am currently working on an order entry app and
 created a login screen 
 before a user can get to the actual app. When they
 login in I am 
 creating several session variables which work, but
 once a person is 
 logged in successfully they get taken to a page
 which is in another 
 directory. So if the user is part of the sales dept
 they go to the sales 
 directory, the problem I am having is once they go
 into that directory I 
 can't read any session variables. Shouldn't these
 session variables be 
 kept throughout the entire app even if it some of
 the pages are in 
 different direcotries.
 
 Thanks,
 Ben Densmore



=
I-Lin Kuo
Macromedia CF5 Advanced Developer
Sun Certified Java 2 Programmer
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session Variables and directories

2001-09-12 Thread Raymond Camden

Check to see if your directories have application.cfm files that create
new apps. Ie, if your root folder has an application.cfm that has:

CFAPPLICATION NAME=RayRocks

and your subdirs do

CFAPPLICATION NAME=Foo

then your users will be entering a new application. Session vars are per
user AND per application.

===
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email: [EMAIL PROTECTED]
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: Ben Densmore [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 12, 2001 12:00 PM
 To: CF-Talk
 Subject: Session Variables and directories
 
 
 I am currently working on an order entry app and created a 
 login screen 
 before a user can get to the actual app. When they login in I am 
 creating several session variables which work, but once a person is 
 logged in successfully they get taken to a page which is in another 
 directory. So if the user is part of the sales dept they go 
 to the sales 
 directory, the problem I am having is once they go into that 
 directory I 
 can't read any session variables. Shouldn't these session 
 variables be 
 kept throughout the entire app even if it some of the pages are in 
 different direcotries.
 
 Thanks,
 Ben Densmore
 

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session Variables and directories

2001-09-12 Thread Mark Stewart

Once you leave the boundaries of your cfapplication tag, you can't
reference those session variables. Session variables are tied to a
specific application name.

Mark

-Original Message-
From: Ben Densmore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 12:00 PM
To: CF-Talk
Subject: Session Variables and directories


I am currently working on an order entry app and created a login screen 
before a user can get to the actual app. When they login in I am 
creating several session variables which work, but once a person is 
logged in successfully they get taken to a page which is in another 
directory. So if the user is part of the sales dept they go to the sales

directory, the problem I am having is once they go into that directory I

can't read any session variables. Shouldn't these session variables be 
kept throughout the entire app even if it some of the pages are in 
different direcotries.

Thanks,
Ben Densmore
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLOCK and Session variables

2001-09-10 Thread Matt Robertson

Read this:

http://www.allaire.com/Handlers/index.cfm?ID=20370Method=Full

and this:

http://www.allaire.com/handlers/index.cfm?ID=17196Method=FullTitle=Locking
%20in%20ColdFusionCache=False

That ought to do it for you.

Cheers,

--Matt--


- Original Message -
From: Gonzo Rock [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 9:45 AM
Subject: CFLOCK and Session variables


A couple of questions that I can't
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared,
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLOCK and Session variables

2001-09-10 Thread Chris Norloff

Have you tried this doc?
http://www.allaire.com/handlers/index.cfm?ID=17318Method=Full

best,
Chris Norloff

-- Original Message --
from: Gonzo Rock [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
date: Wed, 05 Sep 2001 09:45:21 -0700

A couple of questions that I can't 
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared, 
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFLOCK and Session variables

2001-09-10 Thread Yager, Brian T Contractor/NCCIM

I know we have discussed this a good bit lately but I am still needing some
understanding.  In my application, I make MANY session variables.  I use these
variables to check certain things on many pages.  Because of the past threads on
this I have surrounded them with CFLOCK tags.  NowCan someone explain the
proper way to use them?  What I mean is, I have tried giving them the scope of
SESSION but it doesn't work.  I get an error when I do this.  Also, the
'throwontimeout'...if I were to say yes...where would it go?

Here is an example of what I am doing

cflock timeout=35 throwontimeout=No name=Getthelogin type=READONLY
cfif IsDefined(Session.login)
  cfquery name=Get_login datasource=#DSN# dbtype=ODBCSELECT * FROM
Customer_tbl WHERE cust_key = #Session.login#/cfquery
  cfcookie name=login value=#get_login.cust_key# expires=NEVER
/cfif
/cflock



Is this the correct way to do it?

Thanks,

Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED]
(256) 842-8342
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCK and Session variables

2001-09-10 Thread Tyson Vanek

What version of ColdFusion are you running, Brian?  The SCOPE attribute of
the CFLOCK tag was not introduced until (group, correct me if I'm wrong
here) ColdFusion version 4.5.  If you're running a version earlier than
this, you'll need to use named locks instead of scoped locks.

You can find out what version of ColdFusion is being run by logging into the
ColdFusion Administrator and clicking on the Version Info link in the
left-hand navigation menu (or, if you're running ColdFusion 5, it's on the
top menu across the page).

Regards,
Tyson

-Original Message-
From: Yager, Brian T Contractor/NCCIM
[mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 2:27 PM
To: CF-Talk
Subject: CFLOCK and Session variables


I know we have discussed this a good bit lately but I am still needing some
understanding.  In my application, I make MANY session variables.  I use
these
variables to check certain things on many pages.  Because of the past
threads on
this I have surrounded them with CFLOCK tags.  NowCan someone explain
the
proper way to use them?  What I mean is, I have tried giving them the scope
of
SESSION but it doesn't work.  I get an error when I do this.  Also, the
'throwontimeout'...if I were to say yes...where would it go?

Here is an example of what I am doing

cflock timeout=35 throwontimeout=No name=Getthelogin type=READONLY
cfif IsDefined(Session.login)
  cfquery name=Get_login datasource=#DSN# dbtype=ODBCSELECT * FROM
Customer_tbl WHERE cust_key = #Session.login#/cfquery
  cfcookie name=login value=#get_login.cust_key# expires=NEVER
/cfif
/cflock



Is this the correct way to do it?

Thanks,

Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED]
(256) 842-8342
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCK and Session variables

2001-09-07 Thread Kwang Suh

IMHO, I think session, application, server variables
should be banished to the depths of hell.

I recently wrote an application using just the client,
variables, request and caller scopes.  Gawd, talk
about making life easier!

Other than not allowing complex data types in client
variables, I would say the pros of client vars far
outweighs the cons.


--- Tilbrook, Peter [EMAIL PROTECTED]
wrote:
 CFLOCK is very important.
 
 ColdFusion is a multi-threaded application. Not
 locking writes to these
 variables could result in variable (memory)
 corruption.
 
 You should get into the habit of using CFLock even
 when simply
 outputting a applicatio, session variable.
 
 Ben Forta's excellent CF5WACK book -
 http://www.forta.com/books/0789725843/ explains
 locking in fine detail.
 
 Peter Tilbrook
 ColdFusion Applications Developer
 Australia New Zealand Food Authority
 Boeing House
 55 Blackall Street
 BARTON ACT 2600
 Ph: +61-2-6271 2256
 Fax: +61-2-6271 2278
 
 http://www.anzfa.gov.au
 
 -Original Message-
 From: Gonzo Rock [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 6 September 2001 2:45
 To: CF-Talk
 Subject: CFLOCK and Session variables
 
 
 A couple of questions that I can't 
 seem to sort out from reading the DOCS...
 
 1. Why would one need to use cflock when WRITING
 session.variables ?
 
 My impression is that:
 
 Session.var is NOT shared, 
 Client.var is NOT shared,
 Application.var IS shared
 
 2. Why would one need to use cflock when READING any
 shared variables?
 
 thanks y'all,

~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCK and Session variables

2001-09-07 Thread Daniel Lancelot

2 reasons:

1/  if the user has multiple windows open
2/  If the user hits stop before a page finishes executing and executes
another page..

Locking when reading prevents a variable being written when it is being read
and visa versa

-Original Message-
From: Gonzo Rock [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2001 17:45
To: CF-Talk
Subject: CFLOCK and Session variables


A couple of questions that I can't 
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared, 
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLOCK and Session variables

2001-09-07 Thread BEN MORRIS

A user with 2 browser windows open both on your site, or if your site has 
frames would be 2 situations where there could be a session var conflict.

 - Ben 

 Gonzo Rock [EMAIL PROTECTED] 09/05/01 12:45PM 
A couple of questions that I can't 
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared, 
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLOCK and Session variables

2001-09-07 Thread Don Vawter

 A couple of questions that I can't
 seem to sort out from reading the DOCS...

 1. Why would one need to use cflock when WRITING session.variables ?

Because users can open multiple browser windows in the same session or if
you have a framed environment the session scope really is shared.


 2. Why would one need to use cflock when READING any shared variables?

Because someone else may be WRITING at same time.

Don Vawter
www.cyberroomies.com
[EMAIL PROTECTED]

- Original Message -
From: Gonzo Rock [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 10:45 AM
Subject: CFLOCK and Session variables


 My impression is that:

 Session.var is NOT shared,
 Client.var is NOT shared,
 Application.var IS shared

 A couple of questions that I can't
 seem to sort out from reading the DOCS...

 1. Why would one need to use cflock when WRITING session.variables ?


 2. Why would one need to use cflock when READING any shared variables?

 thanks y'all,

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCK and Session variables

2001-09-07 Thread Pete Freitag

You need to use CFLOCK to read and write session variables, the potential
problems arise when a person browsing the web double clicks on a link, or
someone sends a url out with cfid and cftoken on them. Session variables are
shared, because they are accessible to all CF threads.

When a person double clicks a link two requests are sent to the web server
at nearly the same time, these two requests will likely be processed in
different threads, that both have access to the session variable, if both
try to write this causes an error.

You need to use CFLOCK to read variables because if another thread is
writing to a variable and a read request is sent at the same time you will
get corrupted data, and possibly crash the server.  There is a setting in CF
administrator that does automatic read locking for you.

I would have though this question would be in the FAQ
(http://www.thenetprofits.co.uk/coldfusion/faq/ maybe its there I just
looked quickly) I know its been answered several times in the past.

+++
Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
ColdFusion Developer Resources
http://www.cfdev.com/


-Original Message-
From: Gonzo Rock [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 12:45 PM
To: CF-Talk
Subject: CFLOCK and Session variables


A couple of questions that I can't
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared,
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCK and Session variables

2001-09-06 Thread Tilbrook, Peter

CFLOCK is very important.

ColdFusion is a multi-threaded application. Not locking writes to these
variables could result in variable (memory) corruption.

You should get into the habit of using CFLock even when simply
outputting a applicatio, session variable.

Ben Forta's excellent CF5WACK book -
http://www.forta.com/books/0789725843/ explains locking in fine detail.

Peter Tilbrook
ColdFusion Applications Developer
Australia New Zealand Food Authority
Boeing House
55 Blackall Street
BARTON ACT 2600
Ph: +61-2-6271 2256
Fax: +61-2-6271 2278

http://www.anzfa.gov.au

-Original Message-
From: Gonzo Rock [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 6 September 2001 2:45
To: CF-Talk
Subject: CFLOCK and Session variables


A couple of questions that I can't 
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared, 
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFLOCK and Session variables

2001-09-05 Thread Gonzo Rock

A couple of questions that I can't 
seem to sort out from reading the DOCS...

1. Why would one need to use cflock when WRITING session.variables ?

My impression is that:

Session.var is NOT shared, 
Client.var is NOT shared,
Application.var IS shared

2. Why would one need to use cflock when READING any shared variables?

thanks y'all,


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



shopping cart--switching to SSL with session variables

2001-08-29 Thread Megan Cytron
  shipping options
  *NEW* CyberCash integration allows real-time credit
 card processing
  *NEW* Your customer can download purchased files at any time
  depending on
  status of an order and the IP of the machine they
 ordered from
  Product reviews can be submitted by logged-in users and will
  not display
  until approved by administration
  Meta tags are generated for every product and category to
  ensure search
  engines will find you
 
  General
  --
  Complete fusebox architecture is widely accepted and easy to
  maintain and
  modify
  All administrative database queries are in custom tags to
  allow easy re-use
  during development
  Full fusedoc comment headers for fast understanding of each
  page's function
  Use of the request scope instead of application and server
  scopes eliminates
  possible data corruption and increase scalability
  The use of database-stored client variables instead of
  session variables
  allows unlimited clustering of servers
  Comes with ACCESS, SQL, and ORACLE databases with
 stored procedures,
  integrity constraints, and much more.
  Seperate specialized queries where necesary to accomodate for
  differences in
  SQL syntax between databases
 
  go here for more info:
  http://www.aloha-webdesign.com
 
  Bryan Love ACP
  Internet Application Developer
  Telecommunication Systems Inc.
  [EMAIL PROTECTED]
 
 
 
  -Original Message-
  From: Brian Almeter [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 29, 2001 7:01 AM
  To: CF-Talk
  Subject: shopping cart / online store
 
 
  This is a multi-part message in MIME format.
 
  --=_NextPart_000_002D_01C13071.8036D780
  Content-Type: text/plain;
  charset=iso-8859-1
  Content-Transfer-Encoding: 7bit
 
  Hello
  Does anybody know of a good resource for planning,
  developing, and building
  an online store front with ColdFusion?
  Including search capabilities, credit card transactions, etc.
 
  I am already studying from Ben Forta's book on ColdFusion,
  but I need more
  resources as far as planning the site and how to do it with
  coldFusion.
 
  Thanks
  Brian
 

~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: shopping cart--switching to SSL with session variables

2001-08-29 Thread Dave Feltenberger


The downside is that if someone sees the CFID and CFTOKEN on another box
(don't ask me how), they can steal the users session and have access to all
information that would normally be available.  We had this problem on a site
I worked on and had to avoid ever passing the CFTOKEN and CFID around in the
query string, even if there wasn't a good chance that someone would steal
your session (you can't be too careful!).  Also make sure there isn't
already a ? in the query string - ColdFusion seems to choke on multiple
question marks in the query string sometimes.


-Original Message-
From: Megan Cytron [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:10 PM
To: CF-Talk
Subject: shopping cart--switching to SSL with session variables


Does anyone foresee any problems with appending
?#session.URLToken# to the url to which a form submits when
switching from an insecure server to a secure server. It seems
to work great in preserving the shopping cart session for this
particular project, since everything is on one box (and has
enabled us to avoid delving into WDDX or database storage). It
essentially helps the secure server to locate the session by
passing a CFID and CFTOKEN.

Just wondering if there are any downsides to doing this that we
may not have considered...

Thanks!

Megan
[EMAIL PROTECTED]

Alpha 60 Design Shop
http://www.alpha60.com
phone: 202-745-6393
fax:   202-745-6394

 -Original Message-
 From: Ian Lurie [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 4:53 PM
 To: CF-Talk
 Subject: RE: shopping cart / online store


 Just as a plug, we're using NetReady right now on
 www.dessy.com for their
 lookbook product. It integrated with their site with
 about 3 hours of work,
 start-to-finish. Very slick...

  -Original Message-
  From: Bryan Love [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 29, 2001 10:53 AM
  To: CF-Talk
  Subject: RE: shopping cart / online store
 
 
  NetReady.  It's pretty new, but it's cheap and it blows the
  competition away
 
  Here's a feature list:
 
  Administration
  
  Expandable shipping model based on the total weight
 of an order
  *NEW* InterShipper integration allows you to query for real
  time shipping
  prices and record them to your own database with the
 push of a button
  Send bulk email to specific security roles, customers, or
  anyone who has
  ordered specific products
  Organization of products and product lines into user-defined
  categories
  *NEW* Create downloadable products from files with the click
  of a button
  Inventory maintainance by quantity or by expiration date
  Display options to allow customers to see available
 inventory on a
  per-product basis
  Turn individual products on or off
  Create auctions out of existing products
  Turn an auction on or off independantly of the
 product it represents
  Specify any number of options and virtually
 unlimited choices for each
  option on a per-product basis
  Rule editing to allow store-wide product
 modifications with only a few
  keystrokes
  Add, delete, and modify users to fit your business
  Create your own security roles or use the default roles to
  limit users'
  access to the administration tools
  Security log keeps track of user logins and logouts
  Ban specified IPs or allow only specified IPs
  View, modify, and delete orders
  Archive capability hides old orders without deleting them
  Integrated banner system turns banners on or off in
 one mouse click
  Specify expiration date, max mouse clicks, or max displays
  for individual
  banners
  Number of clicks or displays for any given banner is always
  accessible and
  up to date
  Bug form allows bugs to be input at any time
  Bug tracker allows bugs to be sorted, commented on, deleted,
  opened, closed,
  and put on hold to aid in development
  Client-side error checking (JavaScript) prevents
 invalid form input
  Every product has three generic flags to be used for whatever
  you wish (i.e.
  Flag1 could be for items of the week, etc...)
  Category-level discounts will reduce the price of
 any product in the
  category by a fixed amount or a percentage
  Discount codes can be created and given out to individual
  users or groups of
  users
  Set maximum number of uses for a discount code to be
 one, infinite, or
  anything in between
 
  Store Front
  ---
  Customer login ability:
  View past orders
  Create, use, and delete shopping lists
  Store a default billing address and unlimited
 shipping addresses
  Quick checkout eliminates time-consuming data entry
  Log file tracks logins, failed logins, and logouts
  Default store front with home, contact, and privacy pages
  Integrated dynamic random banner display with full logging
  Default catalog allows drill-down through categories
 with full product
  listings
  Auction listings display all items available for
 auction with links to
  purchase the item outright

accessing Cf session variables on same server from another virtual domain

2001-08-21 Thread Stephen M. Marcus

I have an application which was running on a single domain and I'm
porting to multiple virtual domains. These must share a a single secure
domain
for collecting credit card information.

Unfortunately, session variables, which are used throughout the application,
are specific to each domain, so the secure session has no access to the
session variables, e.g.:

session vars on www.thevirtualcompany.com
secure session is  www.sharedsecuredomain.com

Does anyone know of any ways to have the secure session access the
session variables from the other domain, both domains of course on the
same server?

Thanks

Stephen Marcus

FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: accessing Cf session variables on same server from another virtual domain

2001-08-21 Thread Andrew Scott

Yes pass the cfid  cftoken in the url, but this will only work if the
domains are on the same machine!! And btw is not very secure!!

The other way is to use client variables instead, or maybe throw them
into a DB and retrieve them afterwards. The are many methods just what
is practical for your project!!



-Original Message-
From: Stephen M. Marcus [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 22 August 2001 3:13 AM
To: CF-Talk
Subject: accessing Cf session variables on same server from another
virtual domain

I have an application which was running on a single domain and I'm
porting to multiple virtual domains. These must share a a single secure
domain
for collecting credit card information.

Unfortunately, session variables, which are used throughout the
application,
are specific to each domain, so the secure session has no access to the
session variables, e.g.:

session vars on www.thevirtualcompany.com
secure session is  www.sharedsecuredomain.com

Does anyone know of any ways to have the secure session access the
session variables from the other domain, both domains of course on the
same server?

Thanks

Stephen Marcus

FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: accessing Cf session variables on same server from another vi rtual domain

2001-08-21 Thread Dave Watts

 Set your CFID/CFTOKEN to apply to the entire domain with the
 SETDOMAINCOOKIES=yes attribute of CFAPPLICATION tag (like 
 you would if you were using load-balancing).

I don't think that's going to help the original poster, since
SETDOMAINCOOKIES simply allows CFID and CFTOKEN cookies to be shared among
multiple hosts within a single domain, not across hosts in separate domains.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: (202) 797-5496
fax: (202) 797-5444

~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: accessing Cf session variables on same server from another vi rtual domain

2001-08-21 Thread Dave Hannum

You could try writing the variables into a file in a central directory, then
read them into your scripts via mapped includes.  But you need to be able to
use CFFILE to write them, and many times CFFILE is turned off on a shared
server.

Dave


- Original Message -
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, August 21, 2001 2:30 PM
Subject: RE: accessing Cf session variables on same server from another vi
rtual domain


  Set your CFID/CFTOKEN to apply to the entire domain with the
  SETDOMAINCOOKIES=yes attribute of CFAPPLICATION tag (like
  you would if you were using load-balancing).

 I don't think that's going to help the original poster, since
 SETDOMAINCOOKIES simply allows CFID and CFTOKEN cookies to be shared among
 multiple hosts within a single domain, not across hosts in separate
domains.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 phone: (202) 797-5496
 fax: (202) 797-5444


~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: accessing Cf session variables on same server from another vi rtual domain

2001-08-21 Thread Glenn Olsen

Right.  Didn't look at his urls closely enough.  I guess he could:

1) Use www.thevirtualcompany.com and secure.thevirtualcompany.com; or
2) Pass CFID/CFTOKEN along as url variables as suggested by another reply,
if the two urls are on the same box.

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 2:30 PM
To: CF-Talk
Subject: RE: accessing Cf session variables on same server from another
vi rtual domain


 Set your CFID/CFTOKEN to apply to the entire domain with the
 SETDOMAINCOOKIES=yes attribute of CFAPPLICATION tag (like 
 you would if you were using load-balancing).

I don't think that's going to help the original poster, since
SETDOMAINCOOKIES simply allows CFID and CFTOKEN cookies to be shared among
multiple hosts within a single domain, not across hosts in separate domains.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: (202) 797-5496
fax: (202) 797-5444
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFILE Output--how do I include CFLOOP and session variables

2001-07-16 Thread Bud

On 7/16/01, Megan Cytron penned:
Here's my code:

cfset textoutput=
   Order:  #getMaxOrderID.MaxOrderID#

CFLOOP INDEX=loopcount From=1 To=#ArrayLen(session.cart)#
   ITEM CODE:#session.cart[loopcount][3]#
   VARIETY:  #session.cart[loopcount][1]#
   QUANTITY: #session.cart[loopcount][4]#
/cfloop



CFFILE ACTION=Write
 FILE=E:\websites\foo.txt
 OUTPUT=#textoutput#

I know I've been down this road before... is it possible to run
CF tags within CFFILE? Am I missing something really simple?

I don't believe you can place cf tags inside of ANY cf tags. Try 
something like this:

cfset textoutput=Order:  #getMaxOrderID.MaxOrderID#


CFLOOP INDEX=loopcount From=1 To=#ArrayLen(session.cart)#
cfset textoutput = textoutput  ITEM CODE: 
#session.cart[loopcount][3]#
VARIETY:  #session.cart[loopcount][1]#
QUANTITY: #session.cart[loopcount][4]#

/cfloop
-- 

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE Output--how do I include CFLOOP and session variables

2001-07-16 Thread Paul Mone

Hi Megan,
CF Tags will not be interpreted when enclosed in a string variable.  Note
that functions will be interpreted as long as they are enclosed in #'s.
i.e.

cfset output = Date: #DateFormat(Now(), mm-dd-)#

This is especially poignant because of CF5's ability to create UDF's.  If
you're using CF5, you could write a user-defined function that created and
formatted the content of this file.  You probably only do this in one
section of your application, so it's actually a poor example of where to use
UDFs, but you get the point.

Anywho, here's what you're looking to do:


cfscript
//Create a variable to hold a carriage return newline
vCR = Chr(13)  Chr(10);
//Create a variable to hold a tab.
vTab = Chr(9);

//initialize your output variable
textoutput = ;

//create the order file header
textoutput = Order:  vTab  getMaxOrderID.MaxOrderID  vCR   vCR;

//loop through the contents of the session shopping cart
for(i=0;i=ArrayLen(session.cart);i++){
textoutput = textoutput  ITEM CODE:  vTab  vTab  
session.cart[i][3]
 vCR;
textoutput = textoutput  VARIETY:  vTab  vTab  
session.cart[i][1] 
vCR;
textoutput = textoutput  QUANTITY:  vTab  vTab  
session.cart[i][4] 
vCR;
}
/cfscript

!--- Write the file to disk ---
CFFILE ACTION=Write
FILE=E:\websites\foo.txt
OUTPUT=#textoutput#


IMO,
For readability and flexibility, I would also recommend using an array of
structures instead of a two-dimensional array for your shopping cart.
Something like:

session.cart[1].itemcode = SHOE-09201;
session.cart[1].variety = BROWN;
session.cart[1].quantity = 1;



---
Paul Mone
Ninthlink Consulting Group
[EMAIL PROTECTED]
http://www.ninthlink.com
619.222.7082


-Original Message-
From: Megan Cytron [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 15, 2001 11:01 PM
To: CF-Talk
Subject: CFFILE Output--how do I include CFLOOP and session variables


I'll preface this dodo-brain question by saying that I'm
completely sleep-deprived, half brain-dead and away from my home
base, references, etc.

Here's what I need to do: we are using CFFILE to write the
results of an order to a file. We are using CFSET to create a
variable called textoutput. When I put CFLOOP in textoutput
and then reference it within CFFILE, all of my session variables
(from a shopping cart) get messed up and I get an error message
saying that my session variables are no longer there. (My
shopping cart is working fine elsewhere and I'm able to send the
looped session info via CFMAIL, so that probably isn't the
problem.)

Here's my code:

cfset textoutput=
  Order:  #getMaxOrderID.MaxOrderID#

CFLOOP INDEX=loopcount From=1 To=#ArrayLen(session.cart)#
  ITEM CODE:#session.cart[loopcount][3]#
  VARIETY:  #session.cart[loopcount][1]#
  QUANTITY: #session.cart[loopcount][4]#
/cfloop



CFFILE ACTION=Write
FILE=E:\websites\foo.txt
OUTPUT=#textoutput#

I know I've been down this road before... is it possible to run
CF tags within CFFILE? Am I missing something really simple?

Any insight would be greatly appreciated!

Thanks in advance!!

Megan
[EMAIL PROTECTED]

Alpha 60 Design Shop
http://www.alpha60.com
phone: 202-745-6393
fax:   202-745-6394
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE Output--how do I include CFLOOP and session variables

2001-07-16 Thread Megan Cytron

 I don't believe you can place cf tags inside of ANY cf
 tags. Try something like this:

 cfset textoutput=Order:  #getMaxOrderID.MaxOrderID#
 

 CFLOOP INDEX=loopcount From=1
 To=#ArrayLen(session.cart)#
 cfset textoutput = textoutput  ITEM CODE:
 #session.cart[loopcount][3]#
 VARIETY:  #session.cart[loopcount][1]#
 QUANTITY: #session.cart[loopcount][4]#
 
 /cfloop


Yes, yes, yes! After an extended nap, this makes perfect sense
and works like a charm. Thanks very, very much!

Megan
[EMAIL PROTECTED]

Alpha 60 Design Shop
http://www.alpha60.com
phone: 202-745-6393
fax:   202-745-6394


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE Output--how do I include CFLOOP and session variables

2001-07-16 Thread Bud

On 7/16/01, Megan Cytron penned:
   I don't believe you can place cf tags inside of ANY cf
  tags. Try something like this:

  cfset textoutput=Order:  #getMaxOrderID.MaxOrderID#
  

  CFLOOP INDEX=loopcount From=1
  To=#ArrayLen(session.cart)#
  cfset textoutput = textoutput  ITEM CODE:
  #session.cart[loopcount][3]#
  VARIETY:  #session.cart[loopcount][1]#
  QUANTITY: #session.cart[loopcount][4]#
  
  /cfloop


Yes, yes, yes! After an extended nap, this makes perfect sense
and works like a charm. Thanks very, very much!

Gotta sleep ya know. :)
-- 

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFFILE Output--how do I include CFLOOP and session variables

2001-07-15 Thread Megan Cytron

I'll preface this dodo-brain question by saying that I'm
completely sleep-deprived, half brain-dead and away from my home
base, references, etc.

Here's what I need to do: we are using CFFILE to write the
results of an order to a file. We are using CFSET to create a
variable called textoutput. When I put CFLOOP in textoutput
and then reference it within CFFILE, all of my session variables
(from a shopping cart) get messed up and I get an error message
saying that my session variables are no longer there. (My
shopping cart is working fine elsewhere and I'm able to send the
looped session info via CFMAIL, so that probably isn't the
problem.)

Here's my code:

cfset textoutput=
  Order:  #getMaxOrderID.MaxOrderID#

CFLOOP INDEX=loopcount From=1 To=#ArrayLen(session.cart)#
  ITEM CODE:#session.cart[loopcount][3]#
  VARIETY:  #session.cart[loopcount][1]#
  QUANTITY: #session.cart[loopcount][4]#
/cfloop



CFFILE ACTION=Write
FILE=E:\websites\foo.txt
OUTPUT=#textoutput#

I know I've been down this road before... is it possible to run
CF tags within CFFILE? Am I missing something really simple?

Any insight would be greatly appreciated!

Thanks in advance!!

Megan
[EMAIL PROTECTED]

Alpha 60 Design Shop
http://www.alpha60.com
phone: 202-745-6393
fax:   202-745-6394


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: session variables - newbie

2001-07-12 Thread corrigan

Julie,

My first suggestion would be to make sure that you're application.cfm
template has the cfapplication tag in it and that all of the attributes
are set properly (i.e. sessionmanagement=yes
sessiontimeout=#CreateTimeSpan(days, hours, minutes, seconds)#).  I would
also try a few little debugging techniques like cfoutputing that session
variable in one file at a time to see where it loses it.  I generally put it
as the very first thing inside the body tag and outside any tables.  That
way,  when you run the page, you should see the value displayed somewhere at
the top of the page.  This will help you isolate the problem.  Hope this
helps, and welcome to cf.

Michael
- Original Message -
From: Julie Clegg [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 3:43 PM
Subject: session variables - newbie




 I am trying to add a field to my records to let me know who added/updated
 the recordI am new to Cf so I am having some trouble figuring out how
to
 go about doing this.this app is running only on our network and users
 must go thru a login page to access the app.  My Login Action page creates
a
 session variable called session.userid as follows:

cfif check_userid.recordcount
 cflock timeout=0 type=EXCLUSIVE
 cfset session.securityId = check_userid.croleid
 cfset session.authenticated = true
 CFSET session.userId = check_userid.iEmpId
 /cflock
 cflocation url=home.cfm
 cfabort


 After I enter the app and go thru a few pages I want to write a new record
I
 created.  So I just went to the action page where the UPDATE SQL statement
 is and added the following:

 UPDATE CasacAppt
 SET dCasacDate  = '#form.dCasacDate#' ,
 vCreateUser= #session.userId# ,
 .etc



 however when the record is added, the vCreateUser field is still NULL...

 what am I doing wrong??

 Thanks for your help!

 Julie

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



session variables - newbie

2001-07-11 Thread Julie Clegg



I am trying to add a field to my records to let me know who added/updated 
the recordI am new to Cf so I am having some trouble figuring out how to 
go about doing this.this app is running only on our network and users 
must go thru a login page to access the app.  My Login Action page creates a 
session variable called session.userid as follows:

   cfif check_userid.recordcount
cflock timeout=0 type=EXCLUSIVE
cfset session.securityId = check_userid.croleid
cfset session.authenticated = true
CFSET session.userId = check_userid.iEmpId
/cflock
cflocation url=home.cfm
cfabort


After I enter the app and go thru a few pages I want to write a new record I 
created.  So I just went to the action page where the UPDATE SQL statement 
is and added the following:

UPDATE CasacAppt
SET dCasacDate  = '#form.dCasacDate#' ,
vCreateUser= #session.userId# ,
.etc



however when the record is added, the vCreateUser field is still NULL...

what am I doing wrong??

Thanks for your help!

Julie
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Lost Session variables

2001-07-05 Thread David Laing

Rob,

I have experienced a similar problem on IE5 for the Mac - it just seems to
refuse to
store the CFID and CFTOKEN variables as cookies unless you turn don't
specify the expires attributes of the cookie.

ie, like this

cfapplication name=RugbyScene sessionmanagement=Yes
setclientcookies=No

cfcookie name=CFID value=#CFID#
cfcookie name=CFTOKEN value=#CFTOKEN#

(Can't remember exactly where you get the values for CFID and CFTOKEN - I
think they are just local variables - you will have to check.  Otherwise you
might need to set:
CFSET CFID = Session.CFID
CFSET CFTOCKEN = Session.CFTOCKEN)

Donno if that will help you - not having the variables persistant didn't
help me :(

Regards

David

 -Original Message-
 From: Rob McLennan [mailto:[EMAIL PROTECTED]]
 Sent: 05 July 2001 08:17
 To: CF-Talk
 Subject: Lost Session variables


 I have a an end  user using IE5 on Windows ME who is unable to
 maintaing her
 session variables.
 We have checked that cookies are enabled etc but still now success.
 This is the only person who is reporting the problem - we know everthing
 works properly on IE5 Win95/98/NT.

 Any ideas?


 Rob Mclennan
 Web Application Developer
 BRD (Business Resource Development)
 [EMAIL PROTECTED]




 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Cookies vs. Session Variables

2001-07-04 Thread Ken Beard

switch to session vars, and pass the urltoken on every request and set the 
setclientcookies attributes to no in the cfapplication tag.  this last 
bit is to prevent cf from correlating requests into a session via a cookie 
on the user's machine.
cflocation will pass the urltoken automatically if you don't say 
addtoken=no, but on your forms and links you will need to add #urltoken# 
to the end.

At 12:54 PM 7/2/01 -0700, you wrote:
We have an application that uses cookies to track the identity of a user
after logging in.  In a beta test performed at a university lab, this
model failed because the browsers were set up to share the same
cookies.  In this case, all users had access to the information of the
last user to log in.  Is this a common configuration in networks?  Would
switching to session variables eliminate this problem in such an
environment or could there still be issues with this, depending on their
configuration?

-Pete

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


-
Ken Beard
Manager, Application Development
StoneGround

5100 West Kennedy Blvd, Suite 430
Tampa, FL 33609
813-387-1235 (phone)
813-387-1237 (fax)
http://www.stoneground.com/

CONFIDENTIALITY NOTICE: This message is intended only for the use of the 
individual or entity to which it is addressed, and may contain information 
that is privileged, confidential and exempt from under applicable law. All 
code Copyright © 2001 StoneGround. All rights reserved.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Cookies vs. Session Variables

2001-07-04 Thread Costas Piliotis

Nope.  As a matter of fact, the way CF recognizes the session is through
cookies.  

Run this code to confirm:

cfloop collection=#cookie# item=myVar
cfoutputCOOKIE.#myVar#/tdtd style=font: 12pt Courier
New#evaluate(COOKIE.   #myvar#)#/cfoutput
/cfloop

You'll notice a CFID and a CFTOKEN cookie variable.  These values is what CF
uses to assert who the session is.

You're best bet may be to use client variables, or to create a log off
button that clears sessions/cookies.  I don't recommend using client
variables because they sit in the url, and can be easily hijacked, posing an
even bigger security threat.


-Original Message-
From: Pete Miller [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 02, 2001 12:55 PM
To: CF-Talk
Subject: Cookies vs. Session Variables


We have an application that uses cookies to track the identity of a user
after logging in.  In a beta test performed at a university lab, this model
failed because the browsers were set up to share the same cookies.  In this
case, all users had access to the information of the last user to log in.
Is this a common configuration in networks?  Would switching to session
variables eliminate this problem in such an environment or could there still
be issues with this, depending on their configuration?

-Pete

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Lost Session variables

2001-07-04 Thread Rob McLennan

I have a an end  user using IE5 on Windows ME who is unable to maintaing her
session variables.
We have checked that cookies are enabled etc but still now success.
This is the only person who is reporting the problem - we know everthing
works properly on IE5 Win95/98/NT.

Any ideas?


Rob Mclennan
Web Application Developer
BRD (Business Resource Development)
[EMAIL PROTECTED]




Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Cookies vs. Session Variables

2001-07-03 Thread Shawn Regan

Switching to session vars would eliminate the problem.

Shawn Regan
Applications Developer
Pacific Technology Solutions 

-Original Message-
From: Pete Miller [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 12:55 PM
To: CF-Talk
Subject: Cookies vs. Session Variables


We have an application that uses cookies to track the identity of a user
after logging in.  In a beta test performed at a university lab, this
model failed because the browsers were set up to share the same
cookies.  In this case, all users had access to the information of the
last user to log in.  Is this a common configuration in networks?  Would
switching to session variables eliminate this problem in such an
environment or could there still be issues with this, depending on their
configuration?

-Pete

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Cookies vs. Session Variables

2001-07-03 Thread Cameron Childress

Cookies can be set to expire when the browser is closed.  AFAIK, you can't
overcome this with browser configuration.  Sounds like a change in a few
lines of your code will fix your problem.  Using CFCOOKIE without
specifying a timeout will cause the cookie to vanish when the browser is
closed and your problem should go away.

-Cameron


Cameron Childress
elliptIQ Inc.
p.770.460.7277.232
f.770.460.0963
--
http://www.neighborware.com
America's Leading Community Network Software





 -Original Message-
 From: Pete Miller [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 3:55 PM
 To: CF-Talk
 Subject: Cookies vs. Session Variables


 We have an application that uses cookies to track the identity of a user
 after logging in.  In a beta test performed at a university lab, this
 model failed because the browsers were set up to share the same
 cookies.  In this case, all users had access to the information of the
 last user to log in.  Is this a common configuration in networks?  Would
 switching to session variables eliminate this problem in such an
 environment or could there still be issues with this, depending on their
 configuration?

 -Pete

 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Cookies vs. Session Variables

2001-07-03 Thread Nick McClure

I have never seen this before. You must remember, session vars are still 
based on cookies. So If you did move to session vars you would still have 
the same problem.

At 12:54 PM 7/2/2001 -0700, you wrote:
We have an application that uses cookies to track the identity of a user
after logging in.  In a beta test performed at a university lab, this
model failed because the browsers were set up to share the same
cookies.  In this case, all users had access to the information of the
last user to log in.  Is this a common configuration in networks?  Would
switching to session variables eliminate this problem in such an
environment or could there still be issues with this, depending on their
configuration?

-Pete

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Cookies vs. Session Variables

2001-07-03 Thread wnelto

I've never heard of a lab setup like this, but certainly 
don't doubt it. Is there some reasoning behind the 
configuration?

Session variables, by default, use cookies to maintain 
identity. You can disable this by using the 
SetClientCookies=No in the CFAPPLICATION tag. If you do 
this, you'll have to be VERY careful to pass the CFID and 
CFToken (two elements to identify every user) in every 
single URL and Form. If you forget a link someplace, a new 
session will be started when the user clicks the link. I 
believe there are examples of this type of setup in Ben 
Forta's books.

This is also the approach to take when working with users 
that have cookies disabled, as their sessions will die 
after every page request, since the cookie deletes itself.

Norman Elton


Quoting Pete Miller [EMAIL PROTECTED]:

 We have an application that uses cookies to track
 the identity of a user
 after logging in.  In a beta test performed at a
 university lab, this
 model failed because the browsers were set up to
 share the same
 cookies.  In this case, all users had access to the
 information of the
 last user to log in.  Is this a common configuration
 in networks?  Would
 switching to session variables eliminate this
 problem in such an
 environment or could there still be issues with
 this, depending on their
 configuration?
 
 -Pete
 
 Archives:
 http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe:
 http://www.houseoffusion.com/index.cfm?sidebar=lists
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Cookies vs. Session Variables

2001-07-03 Thread Cary Gordon

You are correct,  cookies should not be used to identify users at public 
terminals.  Most public terminals either disallow persistent cookies, 
disallow all cookies or reset cookies after use (more common in 
labs).  Sharing cookies is a new one for me, but the problem is the same.

The answer is to use logins and session management.

At 12:54 PM 7/2/2001 -0700, you wrote:
We have an application that uses cookies to track the identity of a user
after logging in.  In a beta test performed at a university lab, this
model failed because the browsers were set up to share the same
cookies.  In this case, all users had access to the information of the
last user to log in.  Is this a common configuration in networks?  Would
switching to session variables eliminate this problem in such an
environment or could there still be issues with this, depending on their
configuration?

-Pete


Cary Gordon
The Cherry Hill Company


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Cookies vs. Session Variables

2001-07-02 Thread Pete Miller

We have an application that uses cookies to track the identity of a user
after logging in.  In a beta test performed at a university lab, this
model failed because the browsers were set up to share the same
cookies.  In this case, all users had access to the information of the
last user to log in.  Is this a common configuration in networks?  Would
switching to session variables eliminate this problem in such an
environment or could there still be issues with this, depending on their
configuration?

-Pete

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session Variables

2001-06-06 Thread Ray Bujarski

I don't get it everytime I try to do an output on this session variable I 
get an error like it was not initialized!!  Any help would be greatly 
appreciated.  I am using cfserver 4.5 on solaris 5.6

What am I doing wrong?  here is my application.cfm code

CFAPPLICATION NAME=Score
 CLIENTMANAGEMENT=Yes
 CLIENTSTORAGE=Cookie
 SETCLIENTCOOKIES=Yes
 SESSIONMANAGEMENT=Yes
 SESSIONTIMEOUT=#CreateTimeSpan(0,3,0,0)#
 APPLICATIONTIMEOUT=#CreateTimeSpan(0,3,0,0)#
SETDOMAINCOOKIES=Yes
 


!---Sets the path to the application---
CFLOCK SCOPE=Session TIMEOUT=30 TYPE=Exclusive
CFIF NOT IsDefined(session.path)
   CFSET session.path = /dev/Score
/CFIF
/CFLOCK

Here I am trying to output it.

cfoutput
cflock scope=session timeout=10 type=READONLY
a href=#session.path#/Index.cfm?fuseaction=loginLogin/a
/cflock
/cfoutput


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Session Variables - I don't get it]

2001-05-14 Thread Alex

because you are setting it to black on the application.cfm page.
change the application.cfm  cfset to cfparam

Kronenberger, Douglas [EMAIL PROTECTED] wrote:
Greetings,

I'm not getting how to implement session variables. I'm just trying to set
the session variable Session.Dog from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.

What am I miss'n here.

!--- Application.CFM ---

cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

cflock scope=session timeout=2
cfset  Session.Dog = Black
/cflock


!--- Test.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
cfset  #Session.Dog# = Bluebr
/cflock


cflock scope=session type=readonly timeout=2
a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
/cflock

/body
/html

!--- Test2.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput 
/cflock
br

/body
/html
-


Can someone get me started here. 

Thanks

 Doug Kronenberger
 OI National Training and Education Office
 440-526-3030 x7776

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Session Variables - I don't get it]

2001-05-14 Thread Bill King

It appears that you are spitting out the variable before you change it to
blue.

- Bill -
- Original Message -
From: Alex [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 7:47 AM
Subject: Re: [Session Variables - I don't get it]


 because you are setting it to black on the application.cfm page.
 change the application.cfm  cfset to cfparam

 Kronenberger, Douglas [EMAIL PROTECTED] wrote:
 Greetings,

 I'm not getting how to implement session variables. I'm just trying to set
 the session variable Session.Dog from black to Blue and have it show up
as
 Blue on the test.cfm. It keep show'n up black. I do have Session Variables
 enabled via the CF Administrator page.

 What am I miss'n here.

 !--- Application.CFM ---

 cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

 cflock scope=session timeout=2
 cfset  Session.Dog = Black
 /cflock


 !--- Test.CFM  ---
 html

 body
 cflock scope=session timeout=2
 cfoutput #Session.Dog# /cfoutput
 cfset  #Session.Dog# = Bluebr
 /cflock


 cflock scope=session type=readonly timeout=2
 a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
 /cflock

 /body
 /html

 !--- Test2.CFM  ---
 html

 body
 cflock scope=session timeout=2
 cfoutput #Session.Dog# /cfoutput
 /cflock
 br

 /body
 /html
 -


 Can someone get me started here.

 Thanks

  Doug Kronenberger
  OI National Training and Education Office
  440-526-3030 x7776
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session variables.......

2001-05-13 Thread Stevens, Jason

Would anyone know of a way to make session variables either expire or reset
after a page is loaded? I'm having people go through a form process and want
to zero out all session variables upon submission and I'm looking for a way
to do that. If this is a duh, how could you not know the answer to that?,
I apologize, I've only been in CF dev for a month. 

Thank you for you time,

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Session variables.......

2001-05-13 Thread Marius Milosav

you can write the session reset code in the OnRequestEnd.cfm file

it has the same functionality as the Application.cfm but it's called after
the page finishes processing

Has to be in the same directory where the Application.cfm file resides

Marius Milosav
www.scorpiosoft.com
It's not about technology, it's about people.
Virtual Help Desk Demo (VHD)
www.scorpiosoft.com/vhd/login.cfm


- Original Message -
From: Stevens, Jason [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, May 13, 2001 11:07 PM
Subject: Session variables...


 Would anyone know of a way to make session variables either expire or
reset
 after a page is loaded? I'm having people go through a form process and
want
 to zero out all session variables upon submission and I'm looking for a
way
 to do that. If this is a duh, how could you not know the answer to
that?,
 I apologize, I've only been in CF dev for a month.

 Thank you for you time,


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables.......

2001-05-13 Thread Raymond B.

I'm not sure exactly what you want, but if you're talking a multi-part form
(and you want to use session vars) just keep throwing all the form struct
except form.formfield (if 4.5x+) into a session struct then structClear()
the struct at the end.

-Original Message-
From: Stevens, Jason [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2001 20:08
To: CF-Talk
Subject: Session variables...


Would anyone know of a way to make session variables either expire or reset
after a page is loaded? I'm having people go through a form process and want
to zero out all session variables upon submission and I'm looking for a way
to do that. If this is a duh, how could you not know the answer to that?,
I apologize, I've only been in CF dev for a month.

Thank you for you time,
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables.......

2001-05-13 Thread Raymond B.

I should add, I don't mean structClear(session) but create a substruct then
clear it at the end. So it would be structClear(session.form_a) or something
akin to that.

-Original Message-
From: Raymond B. [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2001 20:37
To: CF-Talk
Subject: RE: Session variables...


I'm not sure exactly what you want, but if you're talking a multi-part form
(and you want to use session vars) just keep throwing all the form struct
except form.formfield (if 4.5x+) into a session struct then structClear()
the struct at the end.

-Original Message-
From: Stevens, Jason [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2001 20:08
To: CF-Talk
Subject: Session variables...


Would anyone know of a way to make session variables either expire or reset
after a page is loaded? I'm having people go through a form process and want
to zero out all session variables upon submission and I'm looking for a way
to do that. If this is a duh, how could you not know the answer to that?,
I apologize, I've only been in CF dev for a month.

Thank you for you time,
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session Variables - I don't get it

2001-05-11 Thread Kronenberger, Douglas

Greetings,

I'm not getting how to implement session variables. I'm just trying to set
the session variable Session.Dog from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.

What am I miss'n here.

!--- Application.CFM ---

cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

cflock scope=session timeout=2
cfset  Session.Dog = Black
/cflock


!--- Test.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
cfset  #Session.Dog# = Bluebr
/cflock


cflock scope=session type=readonly timeout=2
a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
/cflock

/body
/html

!--- Test2.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput 
/cflock
br

/body
/html
-


Can someone get me started here. 

Thanks

 Doug Kronenberger
 OI National Training and Education Office
 440-526-3030 x7776
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session Variables - I don't get it

2001-05-11 Thread Kola Oyedeji

Have you got cookies switched on?

incidentaly you dont need ## signs inside cfset.

KOla

-Original Message-
From: Kronenberger, Douglas [mailto:[EMAIL PROTECTED]]
Sent: 11 May 2001 14:50
To: CF-Talk
Subject: Session Variables - I don't get it


Greetings,

I'm not getting how to implement session variables. I'm just trying to set
the session variable Session.Dog from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.

What am I miss'n here.

!--- Application.CFM ---

cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

cflock scope=session timeout=2
cfset  Session.Dog = Black
/cflock


!--- Test.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
cfset  #Session.Dog# = Bluebr
/cflock


cflock scope=session type=readonly timeout=2
a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
/cflock

/body
/html

!--- Test2.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
/cflock
br

/body
/html
-


Can someone get me started here.

Thanks

 Doug Kronenberger
 OI National Training and Education Office
 440-526-3030 x7776

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session Variables - I don't get it

2001-05-11 Thread Per Kleven


Hi

You're setting the session.dog variable to Black EACH time in your
application file,
and in your test.cfm file to Blue AFTER it's outputted. So when you output
it, it's set to black.

use cfparam name=session.dog default=black in the application.cfm
file,

and cfset session.dog = blue BEFORE cfoutput#session.dog#/cfoutput
in the test.cfm file.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Kronenberger, Douglas
Sent: 11. mai 2001 15:50
To: CF-Talk
Subject: Session Variables - I don't get it


Greetings,

I'm not getting how to implement session variables. I'm just trying to set
the session variable Session.Dog from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.

What am I miss'n here.

!--- Application.CFM ---

cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

cflock scope=session timeout=2
cfset  Session.Dog = Black
/cflock


!--- Test.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
cfset  #Session.Dog# = Bluebr
/cflock


cflock scope=session type=readonly timeout=2
a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
/cflock

/body
/html

!--- Test2.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
/cflock
br

/body
/html
-


Can someone get me started here.

Thanks

 Doug Kronenberger
 OI National Training and Education Office
 440-526-3030 x7776

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session Variables - I don't get it

2001-05-11 Thread Boardwine, David L.

The application.cfm runs before every page and resets your variable
session.dog. Just set the value of that session variable in your code
somewhere other than the application.cfm and it should work. I hope this
helps. 


-Original Message-
From: Kronenberger, Douglas [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 9:50 AM
To: CF-Talk
Subject: Session Variables - I don't get it


Greetings,

I'm not getting how to implement session variables. I'm just trying to set
the session variable Session.Dog from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.

What am I miss'n here.

!--- Application.CFM ---

cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

cflock scope=session timeout=2
cfset  Session.Dog = Black
/cflock


!--- Test.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
cfset  #Session.Dog# = Bluebr
/cflock


cflock scope=session type=readonly timeout=2
a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
/cflock

/body
/html

!--- Test2.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput 
/cflock
br

/body
/html
-


Can someone get me started here. 

Thanks

 Doug Kronenberger
 OI National Training and Education Office
 440-526-3030 x7776

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session Variables - I don't get it

2001-05-11 Thread douglas . kronenberger

Got it.

So... it's a runs the application.cfm before every page thing. Hey, that
could be useful.

I have had an epiphany. I understand it all now (even why they have brail on
drive up teller machines).

Thank you all.

-Original Message-
From: Per Kleven [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 7:15 AM
To: CF-Talk
Subject: RE: Session Variables - I don't get it



Hi

You're setting the session.dog variable to Black EACH time in your
application file,
and in your test.cfm file to Blue AFTER it's outputted. So when you output
it, it's set to black.

use cfparam name=session.dog default=black in the application.cfm
file,

and cfset session.dog = blue BEFORE cfoutput#session.dog#/cfoutput
in the test.cfm file.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Kronenberger, Douglas
Sent: 11. mai 2001 15:50
To: CF-Talk
Subject: Session Variables - I don't get it


Greetings,

I'm not getting how to implement session variables. I'm just trying to set
the session variable Session.Dog from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.

What am I miss'n here.

!--- Application.CFM ---

cfapplication name=TEST sessionmanagement=Yes setclientcookies=no

cflock scope=session timeout=2
cfset  Session.Dog = Black
/cflock


!--- Test.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
cfset  #Session.Dog# = Bluebr
/cflock


cflock scope=session type=readonly timeout=2
a href=test2.cfm?cfoutput#Session.URLTOKEN#/cfoutput  Goto/abr
/cflock

/body
/html

!--- Test2.CFM  ---
html

body
cflock scope=session timeout=2
cfoutput #Session.Dog# /cfoutput
/cflock
br

/body
/html
-


Can someone get me started here.

Thanks

 Doug Kronenberger
 OI National Training and Education Office
 440-526-3030 x7776

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Problems with CFLOCK and session variables?

2001-05-08 Thread Gregory Harris

Ok, what is the consequence for failing to lock a session variable? Right now it 
appears that with some unlocked session variables that we have on an application that 
we inherited, it appears to be generating some huge memory leaks in ColdFusion 
whenever we're going through the application.  Is it possible the 2 are related?  Also 
what is the best locking scope for a session variable.  ReadOnly or a Named Exclusive?

Gregory Harris
Web Developer

The Stirling Bridge Group, LLC
*We Engineer Internet Business Solutions*
TEL: (949) 707-1534  FAX: (949) 707-1535




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Problems with CFLOCK and session variables?

2001-05-08 Thread Cameron Childress

 Ok, what is the consequence for failing to lock a session
 variable?

Hair loss, tooth decay, and minor radiation sickness.  Seriously, it's been
very well established that you have to lock sessions, period.

 Also what is the best locking scope for a session
 variable.  ReadOnly or a Named Exclusive?

Read:
http://www.allaire.com/Handlers/index.cfm?ID=14165Method=Full

-Cameron


Cameron Childress
elliptIQ Inc.
p.770.460.7277.232
f.770.460.0963

 -Original Message-
 From: Gregory Harris [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 08, 2001 2:15 PM
 To: CF-Talk
 Subject: Problems with CFLOCK and session variables?


 Ok, what is the consequence for failing to lock a session
 variable? Right now it appears that with some unlocked session
 variables that we have on an application that we inherited, it
 appears to be generating some huge memory leaks in ColdFusion
 whenever we're going through the application.  Is it possible the
 2 are related?  Also what is the best locking scope for a session
 variable.  ReadOnly or a Named Exclusive?

 Gregory Harris
 Web Developer
 
 The Stirling Bridge Group, LLC
 *We Engineer Internet Business Solutions*
 TEL: (949) 707-1534  FAX: (949) 707-1535





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Problems with CFLOCK and session variables?

2001-05-08 Thread Jamie Jackson

Exclusively lock all of your sets, and ReadOnly lock all of your reads
(references). 

Just do it, it's not too tough. :)

Watch out for application variables too.

Jamie

On Tue, 08 May 2001 11:15:20 -0700, Gregory Harris
[EMAIL PROTECTED] wrote:

Ok, what is the consequence for failing to lock a session variable? Right now it
 appears that with some unlocked session variables that we have on an application
 that we inherited, it appears to be generating some huge memory leaks in ColdFusion
 whenever we're going through the application.  Is it possible the 2 are related?
  Also what is the best locking scope for a session variable.  ReadOnly or a Named
 Exclusive?

Gregory Harris
Web Developer

The Stirling Bridge Group, LLC
*We Engineer Internet Business Solutions*
TEL: (949) 707-1534  FAX: (949) 707-1535





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session variables

2001-04-23 Thread Joshua Meekhof

I would like to figure out the deep dark implementation details of cold
fusion sessions.

Is there any way I can back into it? i.e. Can you reference a session
variable as a hidden application variable?

I am trying to do something to an Application variable, based upon the
expiration of a session variable.  If I knew the inner workings of
session variables, I might be able to do this.


Josh Meekhof

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CF 4.5 Automatic locking of session variables

2001-04-09 Thread JAIME HOI


may i ask whether if there is automatic locking for session variables? Cos
previously i code my application in CF4.0 and  most of the sessionn
variables are not locked. But now we are going to migrate to CF4.5. And
somehow the compiler produce an error when a session variable was not
locked. Instead of opening all the files and locking all the session
variables, is there a way whereby i can do a 1-time setting in the
administrator to auto-locked session variables?

JAIME HOI



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF 4.5 Automatic locking of session variables

2001-04-09 Thread Chris Michl

Yes - go into the CF Administrator, click on LOCKING from the menu on the
left. Towards the bottom of the scree you'll see the different locking
options. Select AUTOMATIC READ LOCKING for Application, Server or Session
variables. A couple of months ago there was some discussion regarding this
topic. Check the archives at
http://www.mail-archive.com/cf-talk@houseoffusion.com/.

Regards,
Chris

-Original Message-
From: JAIME HOI [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 7:44 PM
To: CF-Talk
Subject: CF 4.5 Automatic locking of session variables



may i ask whether if there is automatic locking for session variables? Cos
previously i code my application in CF4.0 and  most of the sessionn
variables are not locked. But now we are going to migrate to CF4.5. And
somehow the compiler produce an error when a session variable was not
locked. Instead of opening all the files and locking all the session
variables, is there a way whereby i can do a 1-time setting in the
administrator to auto-locked session variables?

JAIME HOI
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF 4.5 Automatic locking of session variables

2001-04-09 Thread JAIME HOI

actually i have alreadi selected that option but i still get the error that
i should use CFLOCK to lock session variables.

JAIME HOI



-Original Message-
From: Chris Michl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 8:54 AM
To: CF-Talk
Subject: RE: CF 4.5 Automatic locking of session variables


Yes - go into the CF Administrator, click on LOCKING from the menu on the
left. Towards the bottom of the scree you'll see the different locking
options. Select AUTOMATIC READ LOCKING for Application, Server or Session
variables. A couple of months ago there was some discussion regarding this
topic. Check the archives at
http://www.mail-archive.com/cf-talk@houseoffusion.com/.

Regards,
Chris

-Original Message-
From: JAIME HOI [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 7:44 PM
To: CF-Talk
Subject: CF 4.5 Automatic locking of session variables



may i ask whether if there is automatic locking for session variables? Cos
previously i code my application in CF4.0 and  most of the sessionn
variables are not locked. But now we are going to migrate to CF4.5. And
somehow the compiler produce an error when a session variable was not
locked. Instead of opening all the files and locking all the session
variables, is there a way whereby i can do a 1-time setting in the
administrator to auto-locked session variables?

JAIME HOI
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session Variables

2001-03-25 Thread Julia Green

Ben or anyone --

I have recently brought Ben Forta's book on ColdFusion Web Application
Development.  I need some help on setting ColdFusion variables in
ColdFusion.
I have a login form that posts to a welcome.cfm page and a database.  When
the
welcome.cfm page comes up after correctly entering the password and
username,
it says Welcome #FirstName#...question...If someone accesses the welcome.cfm
page directly, there is an error msg that says Form.UserName not available
or whatever,
I want the welcome.cfm page to default to the form automatically when
accessed
directly.  And when the form is used, the name to come up from the
database -- I am
having a bit of a problem with this -- I know it has something to do with
session variables

Questions:

1)  What should I add to the application.cfm page?  I tried this, but now
the firstname doesn't come up...
entstorage=""  ---
CFAPPLICATION name="dautolink" clientmanagement="Yes" setclientcookies="No"
sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0, 0, 30, 0)#"
applicationtimeout="#CreateTimeSpan(1, 0, 0, 0)#"
2)  Here is the login form...(where should I put the cfset code (and what
exactly should
it be to define the session variable of UserName -- should I do Password
also?)  - login code below questions.
3)  On the welcome.cfm page, where should I put the url relocation code that
uses the session variable, I have
a sample but it didn't exactly work...(directly below)

If someone gives me their personal email, I can send attachments...


Julia Green
Julia Computer Consulting
www.juliagreen.com
Email:  [EMAIL PROTECTED]
Phone:  617-926-3413
PO Box 279
Watertown MA  02471-0279
Fax:  413-771-0306



CFQUERY NAME="gilwayb" DATASOURCE="upload"

  SELECT *
  FROM passwd
  WHERE USERNAME='#FORM.UserName#' AND Password='#FORM.Password#'

/CFQUERY

!--CFLOCK TIMEOUT="30" NAME="#Session.SessionID#" TYPE="ReadOnly"--
!--cfif NOT ISDEFINED ("session.UserName")--
!--CFLOCATION URL="index2.cfm"--
!--/cfif--
!--/CFLOCK--


CFOUTPUT QUERY="gilwayb"
center
H1WELCOME #FirstName# !/H1
/center
/CFOUTPUT


CFIF #gilwayb.RecordCount# EQ 0
CFLOCATION URL="template2.cfm"
/CFIF

!-- begin application.cfm --


form name=login_form action="welcome.cfm" method=post

  table border=0 bordercolor="00" cellpadding=5
cellspacing=0
tr bordercolor="FF" bgcolor="FF"
  td height="162"font face="Arial,Helvetica,
sans-serif" color="00" size="2"bfont color="003399"Get
Free Email !/font/bbr
Email login:/fontfont face="Arial,Helvetica,
sans-serif" color="00" size="2"br
font size="2"
input type="text" name="UserName" size="10"
maxlength=32

/fontbr


Password:br
font size="2"
input  type=password name="Password" size=10
maxlength=32

/font
center
  input type="SUBMIT" value="Login"
name="login"

/center
div align="center"a href="passwda.cfm"font
color="0033CC"New
  users Signup!/font/a/div
/font
br
 div align="center"a href="forgot1.cfm"font
color="0033CC"Did you forget your User Name or Password?/font/a/div
/font/td
/tr
  /table
/form
- Original Message -
From: Ben Forta [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, March 25, 2001 12:01 PM
Subject: OT: Think your good? Prove it!


 With my "Certified ColdFusion Developer Study Guide" about to ship, I have
 put a sample CF exam online. It's not an easy exam, and it'll be different
 each time you take it. So, if you are feeling brave, give it a try at
 http://www.forta.com/books/0789725657/ (there's a link at the bottom of
that
 page). Enjoy!

 --- Ben

 PS If you have comments or questions about the exam, reply to me directly
 (not here on the list). The test application is brand new, so any help
 ironing out the kinks is appreciated.

 ==
 Ben Forta - Macromedia Inc.
   E-Mail: [EMAIL PROTECTED]
   Phone:  (248)424-8420
   Fax:(248)424-8421
   Macromedia: http://www.macromedia.c

RE: Session Variables

2001-03-25 Thread Ben Forta

Julia,

If you want to save a FORM field to a SESSION variable, then (assuming you
have session state management turned on) all you need to do is:

CFLOCK SCOPE="session" TYPE="exclusive" TIMEOUT="30"
 CFSET SESSION.FirstName=FORM.FirstName
/CFLOCK

Then you can refer to #SESSION.FirstName# as needed.

Hope this helps.

--- Ben


-Original Message-
From: Julia Green [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 25, 2001 12:38 PM
To: CF-Talk
Subject: Session Variables


Ben or anyone --

I have recently brought Ben Forta's book on ColdFusion Web Application
Development.  I need some help on setting ColdFusion variables in
ColdFusion.
I have a login form that posts to a welcome.cfm page and a database.  When
the
welcome.cfm page comes up after correctly entering the password and
username,
it says Welcome #FirstName#...question...If someone accesses the welcome.cfm
page directly, there is an error msg that says Form.UserName not available
or whatever,
I want the welcome.cfm page to default to the form automatically when
accessed
directly.  And when the form is used, the name to come up from the
database -- I am
having a bit of a problem with this -- I know it has something to do with
session variables

Questions:

1)  What should I add to the application.cfm page?  I tried this, but now
the firstname doesn't come up...
entstorage=""  ---
CFAPPLICATION name="dautolink" clientmanagement="Yes" setclientcookies="No"
sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0, 0, 30, 0)#"
applicationtimeout="#CreateTimeSpan(1, 0, 0, 0)#"
2)  Here is the login form...(where should I put the cfset code (and what
exactly should
it be to define the session variable of UserName -- should I do Password
also?)  - login code below questions.
3)  On the welcome.cfm page, where should I put the url relocation code that
uses the session variable, I have
a sample but it didn't exactly work...(directly below)

If someone gives me their personal email, I can send attachments...


Julia Green
Julia Computer Consulting
www.juliagreen.com
Email:  [EMAIL PROTECTED]
Phone:  617-926-3413
PO Box 279
Watertown MA  02471-0279
Fax:  413-771-0306



CFQUERY NAME="gilwayb" DATASOURCE="upload"

  SELECT *
  FROM passwd
  WHERE USERNAME='#FORM.UserName#' AND Password='#FORM.Password#'

/CFQUERY

!--CFLOCK TIMEOUT="30" NAME="#Session.SessionID#" TYPE="ReadOnly"--
!--cfif NOT ISDEFINED ("session.UserName")--
!--CFLOCATION URL="index2.cfm"--
!--/cfif--
!--/CFLOCK--


CFOUTPUT QUERY="gilwayb"
center
H1WELCOME #FirstName# !/H1
/center
/CFOUTPUT


CFIF #gilwayb.RecordCount# EQ 0
CFLOCATION URL="template2.cfm"
/CFIF

!-- begin application.cfm --


form name=login_form action="welcome.cfm" method=post

  table border=0 bordercolor="00" cellpadding=5
cellspacing=0
tr bordercolor="FF" bgcolor="FF"
  td height="162"font face="Arial,Helvetica,
sans-serif" color="00" size="2"bfont color="003399"Get
Free Email !/font/bbr
Email login:/fontfont face="Arial,Helvetica,
sans-serif" color="00" size="2"br
font size="2"
input type="text" name="UserName" size="10"
maxlength=32

/fontbr


Password:br
font size="2"
input  type=password name="Password" size=10
maxlength=32

/font
center
  input type="SUBMIT" value="Login"
name="login"

/center
div align="center"a href="passwda.cfm"font
color="0033CC"New
  users Signup!/font/a/div
/font
br
 div align="center"a href="forgot1.cfm"font
color="0033CC"Did you forget your User Name or Password?/font/a/div
/font/td
/tr
  /table
/form
- Original Message -
From: Ben Forta [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, March 25, 2001 12:01 PM
Subject: OT: Think your good? Prove it!


 With my "Certified ColdFusion Developer Study Guide" about to ship, I have
 put a sample CF exam online. It's not an easy exam, and it'll be different
 each time you take it. So, if you are feeling brave, give it a try

Session variables stored in SQL server

2001-03-22 Thread Andres Leon

Hello all,

I am wondering if anyone has had any experience with this:

I am running a IIS5.0 and CF cluster of 5 servers and one databaser
server (sql70) will upgrade to sql2k soon.

I was adviced by Allaire to move my session variables to the database,
rather than storing them in each server's registry.

My question is: How safe is this in terms of client variables getting
mixed, or users taking other each other's session variables becuase they
would be extracted from one pool, rather than 5?

Is there a performance change by moving these variables to a remote
database? good?, bad?

Any thoughts or ideas on the subject will be greatly appreciated.

Thank you!

Andres

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables stored in SQL server

2001-03-22 Thread Steve Martin

You're talking about client variables, not session variables. However:
They are as safe as they were in the registry as they are keyed on the
CFID/CFTOKEN pair which are generated by CF. Make sure in your
CFAPPLICATION... you have UseDomainCookes set to TRUE so that no matter
which server you happen to being serviced by, the cookies that were set by
one machine will be available to one of the others in the farm.

Performance-wise, your system will thank you for moving to a RDBMS in the
long run as the registry isn't the most efficient of databases and that's
basically what you're using it for by storing client variables in there.
After a while the registry fills up and system performance degrades - a bad
bad thing!

Steve



-Original Message-
From: Andres Leon [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2001 16:57
To: CF-Talk
Subject: Session variables stored in SQL server


Hello all,

I am wondering if anyone has had any experience with this:

I am running a IIS5.0 and CF cluster of 5 servers and one databaser
server (sql70) will upgrade to sql2k soon.

I was adviced by Allaire to move my session variables to the database,
rather than storing them in each server's registry.

My question is: How safe is this in terms of client variables getting
mixed, or users taking other each other's session variables becuase they
would be extracted from one pool, rather than 5?

Is there a performance change by moving these variables to a remote
database? good?, bad?

Any thoughts or ideas on the subject will be greatly appreciated.

Thank you!

Andres
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables stored in SQL server

2001-03-22 Thread Bryan Love

Ok, client vs. session variables 101.

Session variables are stored in RAM on the CF server which is all fine and
dandy until you create a load-balanced cluster.  In a cluster the
load-balancing equipment can switch a session to a less busy server at any
time - thereby losing a clients session variables (not good).  
Client variables, however, can be stored in the database (or registry or
cookies) and therefore are not server dependant (well, the registry is
server dependant).  Here's a few points to remember that tripped me up when
I first started using them:

1. When declaring CFAPPLICATION you can choose to turn cookies off in which
case maintaining state is completely reliant on having the CFID and CFTOKEN
in the URL string (unless you set the cookies yourself).  This can get messy
occasionally if a user bookmarks a page and then comes back later to find
that their information has not been deleted (this could be a good thing). 

2. When using cookies to hold CFID and CFTOKEN you must replace the default
cookies with temporary ones if you wish the client's session to end when
they close the browser.

3. If you are using cookies instead of the DB to store client variable
information you are limited to 4k characters maximum.  The same is true for
DB stored client variables if you are using ORACLE.

4. The minimum timeout for a client variable (system defined) is one day.

I've been using client variables successfully for quite some time.  They are
slightly more difficult to understand and manipulate, but they are reliable,
scalable, and safe (no CFLOCKS).  You would be wise to learn how to utilize
them yourself :)

Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]



-Original Message-
From: Andres Leon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 8:57 AM
To: CF-Talk
Subject: Session variables stored in SQL server


Hello all,

I am wondering if anyone has had any experience with this:

I am running a IIS5.0 and CF cluster of 5 servers and one databaser
server (sql70) will upgrade to sql2k soon.

I was adviced by Allaire to move my session variables to the database,
rather than storing them in each server's registry.

My question is: How safe is this in terms of client variables getting
mixed, or users taking other each other's session variables becuase they
would be extracted from one pool, rather than 5?

Is there a performance change by moving these variables to a remote
database? good?, bad?

Any thoughts or ideas on the subject will be greatly appreciated.

Thank you!

Andres
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables stored in SQL server

2001-03-22 Thread Bud

On 3/22/01, Bryan Love penned:
3. If you are using cookies instead of the DB to store client variable
information you are limited to 4k characters maximum.  The same is true for
DB stored client variables if you are using ORACLE.

Why can't you use Oracle to store larger client variables? Or is that 
the size of the field that CF creates by default? Couldn't you change 
the field type to store larger client variables?
-- 

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session Variables

2001-03-12 Thread Josh Daws

I'm new at CF.  I'm very experienced in ASP however.  I am now working on
one of my first CF projects and I'm having trouble with session variables.

In ASP I'm used to having the sessions expire when I shut down a browser.
However, I'm declaring a session variable in cold fusion and when I close
the browser and open the page up again in a new browser, the session
variable is still active.  How can I get the session variable to expire when
I close the browser?  If this can't be done, is there a way to clear all
session variables the first time the application.cfm is run, but not every
time?

Josh Daws
428 Productions
(941) 756-7431
www.428Productions.com


- Original Message -
From: "CF-Talk" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 12, 2001 6:30 AM
Subject: CF-Talk-list V1 #206


 CF-Talk-list   Mon, 12 Mar 2001  Volume 1 : Number
206

 In this issue:

 RE: Looping Next  Previous Buttons
 Encrypted string in forms
 Re: Looping Next  Previous Buttons
 Slightly OT: Cookie blocking at corporate firewall level -
 what gives?
 RE: Javascript: Tearing my hair out
 RE: Slightly OT: Cookie blocking at corporate firewall level -what
gives?
 RE: Dates in OLEDB
 Verity error trapping
 RE: Dates in OLEDB
 RE: Dates in OLEDB


 --

 Date: Sun, 11 Mar 2001 22:54:50 -0500
 From: "Chad Elley" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Looping Next  Previous Buttons
 Message-ID: [EMAIL PROTECTED]

 Might want to look into formatting all of your date variables with the
 CREATEODBCDATE function.  I ran into a similar problem with dates.  Worth
a
 try...

 -Original Message-
 From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 11, 2001 6:09 PM
 To: CF-Talk
 Subject: Looping Next  Previous Buttons


 Hi:

 I'm building a scheduler that only shows a week at a glance (horizontally)
 and time slots (vertically).  When a user presses the Next button, I can
 only get it to go to the next week and no further.  Same thing with the
 Previous button.  Here's some code snipplets.  My brain is fried at the
 moment.  Any help on this is greatly appreciated.

 !---  set some variables ---
 CFPARAM NAME="CurrentDate" DEFAULT="#now()#"
 CFPARAM NAME="CurrentYear" DEFAULT="#Year(CurrentDate)#"
 CFPARAM NAME="CurrentMonth" DEFAULT="#Month(CurrentDate)#"
 CFPARAM NAME="CurrentDay" DEFAULT="#Day(CurrentDate)#"
 CFPARAM NAME="Form.WeekChange" DEFAULT=""

 !---  sets the start, end and maximum number of weeks ---
 CFSET STARTWEEK = CURRENTDATE
 CFSET ENDWEEK = CURRENTDATE + 6
 CFSET MAXWEEK = CREATEODBCDATE(DATEADD('WW', 4, NOW()))

 !---  stuff to handle the form ---  (Problem Area I think)
 CFIF ISDEFINED("Form.WeekChange")
  CFIF FORM.WEEKCHANGE IS 'NEXT'
   CFSET STARTWEEK = ENDWEEK + 1
   CFSET ENDWEEK = STARTWEEK + 6
 /CFIF
 /CFIF

 !---   output ---
 !---  Week At A Glance ---
   TR
   CFOUTPUT
   CFLOOP INDEX="current_week" FROM="#startweek#" TO="#endweek#"
 #DateFormat(current_week, ',DD,')#
/TD
  /CFLOOP
   /CFOUTPUT
   /TR



 Yvette Ingram
 Email: ingramrecruiting@erols or
 [EMAIL PROTECTED]
 ICQ:  21200397
 ~~
 Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm

 --

 Date: Mon, 12 Mar 2001 01:04:38 -0600
 From: "Bryan LaPlante" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Encrypted string in forms
 Message-ID: 001801c0aac2$b6d47c50$[EMAIL PROTECTED]

 Does any one have an idea of how I can pass a string that was previously
 encrypted and then cut-n-pasted into a hidden form filed?  Kind of like
 #JSstringFormat()# will make your string safe for JavaScript, I need a way
 to safely pass and encrypted string in a hidden form field.

 Bryan LaPlante
 816-347-8220
 [EMAIL PROTECTED]
 http://www.netwebapps.com
 Web Development


 ~~
 Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm

 --

 Date: Sun, 11 Mar 2001 23:34:22 -0800 (PST)
 From: Heidi Belal [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Looping Next  Previous Buttons
 Message-ID: [EMAIL PROTECTED]

 Yvette!
 I think you need to assign the startweek to the next
 week as you go along as you did, but an idea that
 maybe causing the problem is that you may be resetting
 the variable STARTWEEK to the current date each time.
 Make sure you have that cfset at the beginning, and
 make sure that the code doesn't run through it each
 time you press the next button.
 I hope this help

RE: Session Variables

2001-03-12 Thread Patricia Lee

This will work.

cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")
  cfset cfid_local = Cookie.CFID
  cfset cftoken_local = Cookie.CFTOKEN
  cfcookie name="CFID" value="#cfid_local#"
  cfcookie name="CFTOKEN" value="#cftoken_local#"
/cfif

|-Original Message-
|From: Josh Daws [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 12, 2001 2:12 PM
|To: CF-Talk
|Subject: Session Variables
|
|
|I'm new at CF.  I'm very experienced in ASP however.  I am now 
|working on
|one of my first CF projects and I'm having trouble with 
|session variables.
|
|In ASP I'm used to having the sessions expire when I shut down 
|a browser.
|However, I'm declaring a session variable in cold fusion and 
|when I close
|the browser and open the page up again in a new browser, the session
|variable is still active.  How can I get the session variable 
|to expire when
|I close the browser?  If this can't be done, is there a way to 
|clear all
|session variables the first time the application.cfm is run, 
|but not every
|time?
|
|Josh Daws
|428 Productions
|(941) 756-7431
|www.428Productions.com
|
|
|- Original Message -
|From: "CF-Talk" [EMAIL PROTECTED]
|To: [EMAIL PROTECTED]
|Sent: Monday, March 12, 2001 6:30 AM
|Subject: CF-Talk-list V1 #206
|
|
| CF-Talk-list   Mon, 12 Mar 2001  
|Volume 1 : Number
|206
|
| In this issue:
|
| RE: Looping Next  Previous Buttons
| Encrypted string in forms
| Re: Looping Next  Previous Buttons
| Slightly OT: Cookie blocking at corporate firewall level -
| what gives?
| RE: Javascript: Tearing my hair out
| RE: Slightly OT: Cookie blocking at corporate 
|firewall level -what
|gives?
| RE: Dates in OLEDB
| Verity error trapping
| RE: Dates in OLEDB
| RE: Dates in OLEDB
|
|
| 
|--
|
| Date: Sun, 11 Mar 2001 22:54:50 -0500
| From: "Chad Elley" [EMAIL PROTECTED]
| To: [EMAIL PROTECTED]
| Subject: RE: Looping Next  Previous Buttons
| Message-ID: [EMAIL PROTECTED]
|
| Might want to look into formatting all of your date 
|variables with the
| CREATEODBCDATE function.  I ran into a similar problem with 
|dates.  Worth
|a
| try...
|
| -Original Message-
| From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, March 11, 2001 6:09 PM
| To: CF-Talk
| Subject: Looping Next  Previous Buttons
|
|
| Hi:
|
| I'm building a scheduler that only shows a week at a glance 
|(horizontally)
| and time slots (vertically).  When a user presses the Next 
|button, I can
| only get it to go to the next week and no further.  Same 
|thing with the
| Previous button.  Here's some code snipplets.  My brain is 
|fried at the
| moment.  Any help on this is greatly appreciated.
|
| !---  set some variables ---
| CFPARAM NAME="CurrentDate" DEFAULT="#now()#"
| CFPARAM NAME="CurrentYear" DEFAULT="#Year(CurrentDate)#"
| CFPARAM NAME="CurrentMonth" DEFAULT="#Month(CurrentDate)#"
| CFPARAM NAME="CurrentDay" DEFAULT="#Day(CurrentDate)#"
| CFPARAM NAME="Form.WeekChange" DEFAULT=""
|
| !---  sets the start, end and maximum number of weeks ---
| CFSET STARTWEEK = CURRENTDATE
| CFSET ENDWEEK = CURRENTDATE + 6
| CFSET MAXWEEK = CREATEODBCDATE(DATEADD('WW', 4, NOW()))
|
| !---  stuff to handle the form ---  (Problem Area I think)
| CFIF ISDEFINED("Form.WeekChange")
|  CFIF FORM.WEEKCHANGE IS 'NEXT'
|   CFSET STARTWEEK = ENDWEEK + 1
|   CFSET ENDWEEK = STARTWEEK + 6
| /CFIF
| /CFIF
|
| !---   output ---
| !---  Week At A Glance ---
|   TR
|   CFOUTPUT
|   CFLOOP INDEX="current_week" FROM="#startweek#" TO="#endweek#"
| #DateFormat(current_week, ',DD,')#
|/TD
|  /CFLOOP
|   /CFOUTPUT
|   /TR
|
|
|
| Yvette Ingram
| Email: ingramrecruiting@erols or
| [EMAIL PROTECTED]
| ICQ:  21200397
|
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Session variables

2001-03-12 Thread Parker, Kevin

I am working on a quiz application. I have created an application.cfm file
which contains this:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
   clientstorage="Registry"


If I place the code below inside any given page in the quiz and say modify
the session timeout values does the code inside the page take precedence
over the code in application.cfm or not, or does it do something else, or
does it do nothing. I am thinking of varying the session timeout in one page
to effectively get rid of all session variables by changing the session
timeout to 1 second viz:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,0,1)#"
   clientstorage="Registry"



TIA




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287






This e-mail is intended for the use of the addressee only. It may contain
information that is protected by legislated confidentiality and/or is
legally privileged. If you are not the intended recipient you are prohibited
from disseminating, distributing or copying this e-mail. Any opinion
expressed in this e-mail may not necessarily be that of the WorkCover
Corporation of South Australia. Although precautions have been taken, the
sender cannot warrant that this e-mail or any files transmitted with it are
free of viruses or any other defect.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and destroy the original e-mail and any copies.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Session variables

2001-03-12 Thread Bud

On 3/13/01, Parker, Kevin penned:
If I place the code below inside any given page in the quiz and say modify
the session timeout values does the code inside the page take precedence
over the code in application.cfm or not, or does it do something else, or
does it do nothing. I am thinking of varying the session timeout in one page
to effectively get rid of all session variables by changing the session
timeout to 1 second viz:

cfapplication name="SmartMoveTest"
  clientmanagement="Yes"
sessionmanagement="Yes"
setclientcookies="No"
sessiontimeout="#CreateTimeSpan(0,0,0,1)#"
clientstorage="Registry"

The session timeout will be what's loaded in the last cfapplication tag.
-- 

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables

2001-03-12 Thread Bryan Love

The application will run under the MOST RECENTLY declared CFAPPLICATION tag.
If you use a second CFAPPLICATION tag in the same call the server will run
under that one.  There are easier ways to clear the session scope, however.

1. Use the structClear() function
- if you do this be sure to store session.sessionID in a local
variable and reassign it after the call
- i.e. 
[use cflock here]
temp = session.sessionID;
foo = structClear(session);
session.sessionID = temp;
[end lock]

2. You can identify the session variables you wish to delete
- [lock]
  foo = structDelete(session,"key");
  [end lock]

Actually, I've found that it is easier to create and maintain applications
if you can rely on certain variables ALWAYS being around and just test their
contents.  In other words, instead of deleting the variable, just set it to
blank or to zero and check for that in the if statement.  That way you can
param them to blank or whatever in application.cfm and not bite your nails
off trying to figure out why it exists when it shouldn't (or vice versa).

Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]



-Original Message-
From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:14 PM
To: CF-Talk
Subject: Session variables


I am working on a quiz application. I have created an application.cfm file
which contains this:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
   clientstorage="Registry"


If I place the code below inside any given page in the quiz and say modify
the session timeout values does the code inside the page take precedence
over the code in application.cfm or not, or does it do something else, or
does it do nothing. I am thinking of varying the session timeout in one page
to effectively get rid of all session variables by changing the session
timeout to 1 second viz:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,0,1)#"
   clientstorage="Registry"



TIA




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287






This e-mail is intended for the use of the addressee only. It may contain
information that is protected by legislated confidentiality and/or is
legally privileged. If you are not the intended recipient you are prohibited
from disseminating, distributing or copying this e-mail. Any opinion
expressed in this e-mail may not necessarily be that of the WorkCover
Corporation of South Australia. Although precautions have been taken, the
sender cannot warrant that this e-mail or any files transmitted with it are
free of viruses or any other defect.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and destroy the original e-mail and any copies.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables

2001-03-12 Thread Parker, Kevin

Thank you Bryan - I was just consulting Ben Forta's book on cflock and to
quote "Forcing code to single threaded use only can seriously impact system
performance." Do you think this is an issue in this case?




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287




-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 March 2001 10:13:AM
To: CF-Talk
Subject: RE: Session variables


The application will run under the MOST RECENTLY declared CFAPPLICATION tag.
If you use a second CFAPPLICATION tag in the same call the server will run
under that one.  There are easier ways to clear the session scope, however.

1. Use the structClear() function
- if you do this be sure to store session.sessionID in a local
variable and reassign it after the call
- i.e. 
[use cflock here]
temp = session.sessionID;
foo = structClear(session);
session.sessionID = temp;
[end lock]

2. You can identify the session variables you wish to delete
- [lock]
  foo = structDelete(session,"key");
  [end lock]

Actually, I've found that it is easier to create and maintain applications
if you can rely on certain variables ALWAYS being around and just test their
contents.  In other words, instead of deleting the variable, just set it to
blank or to zero and check for that in the if statement.  That way you can
param them to blank or whatever in application.cfm and not bite your nails
off trying to figure out why it exists when it shouldn't (or vice versa).

Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]



-Original Message-
From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:14 PM
To: CF-Talk
Subject: Session variables


I am working on a quiz application. I have created an application.cfm file
which contains this:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
   clientstorage="Registry"


If I place the code below inside any given page in the quiz and say modify
the session timeout values does the code inside the page take precedence
over the code in application.cfm or not, or does it do something else, or
does it do nothing. I am thinking of varying the session timeout in one page
to effectively get rid of all session variables by changing the session
timeout to 1 second viz:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,0,1)#"
   clientstorage="Registry"



TIA




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287






This e-mail is intended for the use of the addressee only. It may contain
information that is protected by legislated confidentiality and/or is
legally privileged. If you are not the intended recipient you are prohibited
from disseminating, distributing or copying this e-mail. Any opinion
expressed in this e-mail may not necessarily be that of the WorkCover
Corporation of South Australia. Although precautions have been taken, the
sender cannot warrant that this e-mail or any files transmitted with it are
free of viruses or any other defect.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and destroy the original e-mail and any copies.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables

2001-03-12 Thread Bryan Love

Not necesarily.  I ran a regression test where I used different locking
methods to read 10,000 application variables (same locking issue as session
variables) and the results were somewhat surprising; using one CFLOCK tag
outside the loop it took 450 ms while using 10,000 individual locks inside
the loop took only 600 ms.  I performed this experience using CF Server 4.5
on my laptop (Pentium 3 with 256 RAM).  As you can see, the effect of one
lock or even of 20 simultaneous locks is practically nill.  

In general I don't use Session variables at all: their multi-threaded nature
combined with their inability to support clustering make them dangerous in
high-end applications.  Despite their seductive nature they are a crutch to
beginning and experienced developers alike.

Client variables require a little more experience and understanding to
manipulate but they do not require locks and can be used in a clustered
environment.  When used in conjuction with request variables you can
successfully create a solid, single-threaded-by-nature application that will
scale across as many servers as you want.

Good luck!

Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]



-Original Message-
From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 4:26 PM
To: CF-Talk
Subject: RE: Session variables


Thank you Bryan - I was just consulting Ben Forta's book on cflock and to
quote "Forcing code to single threaded use only can seriously impact system
performance." Do you think this is an issue in this case?




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287




-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 March 2001 10:13:AM
To: CF-Talk
Subject: RE: Session variables


The application will run under the MOST RECENTLY declared CFAPPLICATION tag.
If you use a second CFAPPLICATION tag in the same call the server will run
under that one.  There are easier ways to clear the session scope, however.

1. Use the structClear() function
- if you do this be sure to store session.sessionID in a local
variable and reassign it after the call
- i.e. 
[use cflock here]
temp = session.sessionID;
foo = structClear(session);
session.sessionID = temp;
[end lock]

2. You can identify the session variables you wish to delete
- [lock]
  foo = structDelete(session,"key");
  [end lock]

Actually, I've found that it is easier to create and maintain applications
if you can rely on certain variables ALWAYS being around and just test their
contents.  In other words, instead of deleting the variable, just set it to
blank or to zero and check for that in the if statement.  That way you can
param them to blank or whatever in application.cfm and not bite your nails
off trying to figure out why it exists when it shouldn't (or vice versa).

Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]



-Original Message-
From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:14 PM
To: CF-Talk
Subject: Session variables


I am working on a quiz application. I have created an application.cfm file
which contains this:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
   clientstorage="Registry"


If I place the code below inside any given page in the quiz and say modify
the session timeout values does the code inside the page take precedence
over the code in application.cfm or not, or does it do something else, or
does it do nothing. I am thinking of varying the session timeout in one page
to effectively get rid of all session variables by changing the session
timeout to 1 second viz:

cfapplication name="SmartMoveTest"
   clientmanagement="Yes"
   sessionmanagement="Yes"
   setclientcookies="No"
   sessiontimeout="#CreateTimeSpan(0,0,0,1)#"
   clientstorage="Registry"



TIA




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287






This e-mail is intended for the use of the addressee only. It may contain
information that is protected by legislated confidentiality and/or is
legal

RE: Session variables

2001-03-12 Thread paul smith

Amen.  My latest app uses Client  Request and doesn't have a single CFLOCK.

best,  paul

At 05:16 PM 3/12/01 -0800, you wrote:
Client variables require a little more experience and understanding to
manipulate but they do not require locks and can be used in a clustered
environment.  When used in conjuction with request variables you can
successfully create a solid, single-threaded-by-nature application that will
scale across as many servers as you want


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables

2001-03-12 Thread Dave Watts

  Thank you Bryan - I was just consulting Ben Forta's book on 
  cflock and to quote "Forcing code to single threaded use only 
  can seriously impact system performance." Do you think this is 
  an issue in this case?

 Not necesarily. I ran a regression test where I used different 
 locking methods to read 10,000 application variables (same locking 
 issue as session variables) and the results were somewhat 
 surprising; using one CFLOCK tag outside the loop it took 450 
 ms while using 10,000 individual locks inside the loop took 
 only 600 ms. I performed this experience using CF Server 4.5
 on my laptop (Pentium 3 with 256 RAM).  As you can see, the 
 effect of one lock or even of 20 simultaneous locks is 
 practically nill.

I'm assuming from the above that you're using a single script with a loop
inside it, and you're calling that script once from your browser. If my
assumption is incorrect, I apologize in advance.

You'll want to be extremely careful about using looping-based tests to
determine server performance. Typically, they don't really tell you what you
want to know. Rather than running one script which does something 1000
times, a much better test would be to have one script run by 1000 concurrent
users - it'll tell you a lot more about real-world performance.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Session variables

2001-03-12 Thread Dylan Bromby

If you're looking for some free utilities to stress test on NT or 2000,
check out:

http://support.microsoft.com/support/dna/bundles/QA/loadtest.asp

I've used InetLoad before; it's scriptable and pretty decent...for being
free.

--Dylan

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 7:59 PM
To: CF-Talk
Subject: RE: Session variables


  Thank you Bryan - I was just consulting Ben Forta's book on
  cflock and to quote "Forcing code to single threaded use only
  can seriously impact system performance." Do you think this is
  an issue in this case?

 Not necesarily. I ran a regression test where I used different
 locking methods to read 10,000 application variables (same locking
 issue as session variables) and the results were somewhat
 surprising; using one CFLOCK tag outside the loop it took 450
 ms while using 10,000 individual locks inside the loop took
 only 600 ms. I performed this experience using CF Server 4.5
 on my laptop (Pentium 3 with 256 RAM).  As you can see, the
 effect of one lock or even of 20 simultaneous locks is
 practically nill.

I'm assuming from the above that you're using a single script with a loop
inside it, and you're calling that script once from your browser. If my
assumption is incorrect, I apologize in advance.

You'll want to be extremely careful about using looping-based tests to
determine server performance. Typically, they don't really tell you what you
want to know. Rather than running one script which does something 1000
times, a much better test would be to have one script run by 1000 concurrent
users - it'll tell you a lot more about real-world performance.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



ANS: What are client and session variables?

2001-02-23 Thread Aidan Whitehall

This is for the person who asked the question about client and session
variables (and of course all you others who want to know...).

And before you ask, "yes", it's in the ColdFusion FAQ I'm building.



Before we talk about client and session variables, we need to briefly
discuss the HTTP protocol and cookies. That will help clarify how ColdFusion
tracks users.

The HTTP protocol consists of a request-response pair. When a browser
requests a webpage from a server, the server's response is to find the
webpage on its hard drive and then send the file back to the browser. When
the browser parses (reads) the webpage and finds there are references to 5
images, it then makes 5 subsequent requests to the server, one for each
image. Those 5 requests are then fulfilled by the server finding the images
on its hard drive and sending them back to the browser. The browser then
uses the 6 files to display the webpage on the monitor.

All of this happens very quickly and helps to hide the fact that displaying
one webpage can be the result of a large number of HTTP request-response
pairs.

Each request that a browser makes to a server is said to be "stateless".
That is to say, the server doesn't track a series of requests from a
particular browser. Each request is independent of every other request. As
long as the server has the IP address of the computer making each individual
request, it has sufficient information to send the necessary file (resource)
on its way.

Certain websites, however, have a requirement to track users - sites with
shopping baskets, for example. If the information about the products in a
user's basket is stored on the server, that server needs to somehow track
users to ensure that baskets don't get lost or mixed up.

How, then, do we address the fundamental statelessness of the HTTP protocol?
The answer is with cookies and a pair of values called CFID and CFTOKEN.

A cookie is the name given to a simple string of text. Firstly, let's clear
up how cookies work.

Setting a cookie in a browser works as follows. The browser requests a file
from a server. The server's response is to send back the file, along with a
command to "set" a cookie in the browser. If the browser is configured to
accept cookies, the cookie is said to be "set".

Every time the browser makes a subsequent request from the same server, the
cookie is returned to the server along with each request.

For example, if we set a cookie in a browser that had a value NAME equal to
FRED, every time the browser asked for another file from the same server,
along with the request would come the information that NAME=FRED.

If there were several browsers all making requests from one server, so long
as they are all returning different NAMEs, we could use the cookie's NAME
value to identify which browser each request had come from.

ColdFusion utilises this behaviour to first differentiate and then track
users. However, instead of using a cookie with a value called NAME, it uses
two values called CFID and CFTOKEN.

The first time a browser makes a request for a page from a ColdFusion
server, ColdFusion creates a new CFID-CFTOKEN pair. CFID is an incremental
number and CFTOKEN is a random 8 digit number. If the last CFID-CFTOKEN pair
created was 100-12345678, the next pair might be 101-87654321. Taken
together, each CFID-CFTOKEN pair is unique.

When ColdFusion sends the first page back to the browser, it also attempts
to set a cookie that contains our newly created CFID-CFTOKEN values. If the
cookie is successfully set, every subsequent request from that browser will
be accompanied by the cookie containing CFID=101*CFTOKEN=87654321.

As long as ColdFusion then receives the CFID and CFTOKEN values along with
every request (which is how cookies are designed to operate), it can
differentiate requests from different browsers.

Client variables are values stored on the server and associated with a
particular browser. They are typically stored in the server's registry (a
part of Windows where values are stored). Client variables are designed to
track users over a long period of time.

If a user visited a site and was asked to enter their name in an online
form, and this code was on the following page

CFSET client.Name = form.Name

whatever they typed in the Name form field would then be stored in the
registry as a client variable called "Name". Along with Name would be the
CFID-CFTOKEN pair of the browser with which they are associated.

The user then left our site and didn't return for several weeks. When they
did return, the first time they request a page from the server, the
CFID-CFTOKEN pair were also sent. ColdFusion sees that along with the
request for a page is a value for CFID and CFTOKEN. If then looks to see if
the CFID-CFTOKEN pair it has been sent with the request match any of the
pairs stored in the registry.

It does! And along with the CFID-CFTOKEN value in the registry is another
val

Session Variables and password protected folders...

2001-02-23 Thread Joby Bednar

Anyone familiar with session variables not being able to be used through
password protected folders?  I have a site that works fine on the dev server
but won't set session variables on our live site.  The site is hidden behind
a password protected folder.  I checked the settings in the admin and all
looks fine to me... and yes, the application.cfm file was transfered over
and is being used on each page:

cfapplication name="name" clientmanagement="yes" sessionmanagement="yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#"

Any ideas why it may not be working?  Both server versions are 4.0
Joby Bednar
Director of Internet Design
iNEOgroup.com
http://www.ineogroup.com
Fusing your Dreams and the Web, Together as One
[EMAIL PROTECTED]
Cell:  949-283-5138
Personal Fax:  208-485-1170



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: understanding session variables

2001-02-21 Thread Aidan Whitehall

 Please explain to me what occurs when you use session 
 variables.  The default is for a cookie to me created which 
 stores the cftoken and cfid, correct?
 
 What happens when the "cookie" is stored in the registry?  
 Where can I look up what is stored in my registry?  And do 
 the values permanently stay in the registry, or do they get 
 deleted when the browser is closed.

Oh boy... this is a *big* Q / A I'm rewriting in the FAQ.

If you can wait a day or so, you'll have your answer, although you probably
need to know, like, yesterday  ;-)



-- 
Aidan Whitehall [EMAIL PROTECTED]
Netshopper UK Ltd
Advanced Web Solutions  Services

http://www.netshopperuk.com/
Telephone +44 (01744) 648650
Fax +44 (01744) 648651

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



netscape and session variables

2001-02-21 Thread Eric V. Hodge

when testing my application session variables work under IE, but not Netscape.  I have 
tried different versions of Netscape and none of them work.  In all my browsers 
cookies are enabled.

What could be the problem?
-eric


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: netscape and session variables

2001-02-21 Thread Phoeun Pha

make sure your session variables are locked

-Original Message-
From: Eric V. Hodge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:50 AM
To: CF-Talk
Subject: netscape and session variables


when testing my application session variables work under IE, but not
Netscape.  I have tried different versions of Netscape and none of them
work.  In all my browsers cookies are enabled.

What could be the problem?
-eric
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: netscape and session variables

2001-02-21 Thread Cami Lawson

what kind of hardware do you have associated with your application?

We had some problems at first with this same issue but it was because of
multiple boxes.
- Original Message -
From: "Eric V. Hodge" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 9:50 AM
Subject: netscape and session variables


 when testing my application session variables work under IE, but not
Netscape.  I have tried different versions of Netscape and none of them
work.  In all my browsers cookies are enabled.

 What could be the problem?
 -eric



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



session variables

2001-02-20 Thread John McCosker

Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread Daniel Lancelot

Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread John McCosker

Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread Daniel Lancelot

Your machine will be able to log onto the site because at some point in the
past you wil have loaded a*.cfm  page from that domain - if you delete all
your cookies, and try logging in, then you probably wont be able to...

To fix the problem - 

If possible, have the form on the same domain as the action...

or you can use a meta refresh:

meta http-equiv="Refresh" content="0; url=www.mydomain.com.index.cfm" 



-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:55
To: CF-Talk
Subject: RE: session variables


Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread John McCosker

The form is on the same domain as the action.

How will the Meta refresh solve my problem, and where should I put it.

I have deleted all cookies and I can no longer login to the site.

There has got to be a way round this. 

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 11:50
To: CF-Talk
Subject: RE: session variables


Your machine will be able to log onto the site because at some point in the
past you wil have loaded a*.cfm  page from that domain - if you delete all
your cookies, and try logging in, then you probably wont be able to...

To fix the problem - 

If possible, have the form on the same domain as the action...

or you can use a meta refresh:

meta http-equiv="Refresh" content="0; url=www.mydomain.com.index.cfm" 



-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:55
To: CF-Talk
Subject: RE: session variables


Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread Daniel Lancelot

is the form page .cfm or .htm - needs to be .cfm for the cookie to be set

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 12:21
To: CF-Talk
Subject: RE: session variables


The form is on the same domain as the action.

How will the Meta refresh solve my problem, and where should I put it.

I have deleted all cookies and I can no longer login to the site.

There has got to be a way round this. 

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 11:50
To: CF-Talk
Subject: RE: session variables


Your machine will be able to log onto the site because at some point in the
past you wil have loaded a*.cfm  page from that domain - if you delete all
your cookies, and try logging in, then you probably wont be able to...

To fix the problem - 

If possible, have the form on the same domain as the action...

or you can use a meta refresh:

meta http-equiv="Refresh" content="0; url=www.mydomain.com.index.cfm" 



-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:55
To: CF-Talk
Subject: RE: session variables


Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread John McCosker

the form page is .cfm

I am using cfform.


-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 12:27
To: CF-Talk
Subject: RE: session variables


is the form page .cfm or .htm - needs to be .cfm for the cookie to be set

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 12:21
To: CF-Talk
Subject: RE: session variables


The form is on the same domain as the action.

How will the Meta refresh solve my problem, and where should I put it.

I have deleted all cookies and I can no longer login to the site.

There has got to be a way round this. 

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 11:50
To: CF-Talk
Subject: RE: session variables


Your machine will be able to log onto the site because at some point in the
past you wil have loaded a*.cfm  page from that domain - if you delete all
your cookies, and try logging in, then you probably wont be able to...

To fix the problem - 

If possible, have the form on the same domain as the action...

or you can use a meta refresh:

meta http-equiv="Refresh" content="0; url=www.mydomain.com.index.cfm" 



-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:55
To: CF-Talk
Subject: RE: session variables


Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread John McCosker

Dan I got it working
Simple but stupid, I had clientManagement set to 'no'

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 12:27
To: CF-Talk
Subject: RE: session variables


is the form page .cfm or .htm - needs to be .cfm for the cookie to be set

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 12:21
To: CF-Talk
Subject: RE: session variables


The form is on the same domain as the action.

How will the Meta refresh solve my problem, and where should I put it.

I have deleted all cookies and I can no longer login to the site.

There has got to be a way round this. 

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 11:50
To: CF-Talk
Subject: RE: session variables


Your machine will be able to log onto the site because at some point in the
past you wil have loaded a*.cfm  page from that domain - if you delete all
your cookies, and try logging in, then you probably wont be able to...

To fix the problem - 

If possible, have the form on the same domain as the action...

or you can use a meta refresh:

meta http-equiv="Refresh" content="0; url=www.mydomain.com.index.cfm" 



-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:55
To: CF-Talk
Subject: RE: session variables


Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



understanding session variables

2001-02-20 Thread Eric V. Hodge

Please explain to me what occurs when you use session variables.  The default is for a 
cookie to me created which stores the cftoken and cfid, correct?

What happens when the "cookie" is stored in the registry?  Where can I look up what is 
stored in my registry?  And do the values permanently stay in the registry, or do they 
get deleted when the browser is closed.

thanks,
eric


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: session variables

2001-02-20 Thread Scott, Andrew

Check that cookies is switched on:-)

Also is this a farm of computers in a load balance environment:-)

There are ways to do the same thing, without using session variables:-)


regards

Andrew Scott
Senior Coldfusion Application Developer


-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 21:55
To: CF-Talk
Subject: RE: session variables


Ok Dan!

Yes the webserver is on another Domain, but that does not explain why my own
machine can still login to the site.

I tested the session state by outputting the variable and it is defined.

On any other client the session is never defined.

Can you recommend a solution round the domain problem.

Thanks Dan.

-Original Message-
From: Daniel Lancelot [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:47
To: CF-Talk
Subject: RE: session variables


Hi John,

What it might be...

Are you switching domains on the live server using cflocation at any time?

If so, any session/application/etc variables may not be set correctly, as CF
needs to set a cookie with CFID/CFTOKEN to identify the client machine, and
cflocate prevents the cookie from being set

This would explain why your not having a problem on the development server,
as:
1/  The cookie will have already been set
2/  Both sections will be under the same domain

HTH

Dan.

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 10:35
To: CF-Talk
Subject: session variables


Has anyone ever experienced session variables not getting set.

I have created a login page like so,

cfif isdefined("form.uid") and isdefined("form.pwd")
cfquery name="checkLoginUser"
datasource="#application.dsn#" username="sa" password="ruler"
SELECTuid, pwd
FROM  dbo.Users
WHERE (uid = '#form.uid#') and (pwd = '#form.pwd#')
/cfquery
cfif checkLoginUser.recordcount eq 1
cflock scope="session" type="EXCLUSIVE"
timeout="30"
cfset session.checkLoginUser = 1
cfset session.LoginUser =
#checkLoginUser.uid#
/cflock
cflocation
url="#application.secureVirtualRoot#admin/control.cfm" addtoken="No"
cfelse
cflock scope="session" type="exclusive"
timeout="30"
cfset session.checkLoginUser = 0
/cflock
trtd bgcolor="#ebebeb" class="main"nbsp;font
color="#ff0033"Sorry!/font but your blogin/b details nbsp;are
bincorrect/b please check!/td/tr
/cfif
/cfif


My application file is between the directories in a directory named secure,
and is like so

cfinclude template="../../application.cfm"
cfif isdefined("session.checkLoginUser")
cfif session.checkLoginUser neq 1
cflocation
url="#Application.virtualRoot#coolcross/index.cfm" addtoken="No"
/cfif
cfelse
cflocation addtoken="No"
url="#Application.virtualRoot#coolcross/index.cfm"
/cfif

When I login through my own client its successfull, the session variable is
set.
If I login on the webserver it is also successful.

If I login on any other client the session never gets set.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



<    5   6   7   8   9   10   11   12   >