Re: Session variables problem

2006-09-25 Thread Richard White
i have taken the application.cfc out of the default folder and put it into the parent directory but now all of my pages are coming up blank. unless it is in the _mmServerScripts folder nothing works. is there a reason for this

Re: Session variables problem

2006-09-25 Thread Charlie Griefer
On 9/25/06, Ian Skinner <[EMAIL PROTECTED]> wrote: > (honestly, i'm new to Application.cfc, so i'm not sure if the including is a > generally accepted good practice...might be better to just move the > Application.cfc up one level so both directories can access it) > > Actually with Application.c

Re: Session variables problem

2006-09-25 Thread Richard White
thanks for everyones help, its made it very understandable! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year

Re: Session variables problem

2006-09-25 Thread Richard White
i see thanks for all your help :) ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthori

RE: Session variables problem

2006-09-25 Thread Ian Skinner
(honestly, i'm new to Application.cfc, so i'm not sure if the including is a generally accepted good practice...might be better to just move the Application.cfc up one level so both directories can access it) Actually with Application.cfc, extending the CFC is usually a better way, then trying

Re: Session variables problem

2006-09-25 Thread Teddy Payne
Well, you don't really use the cfapplication tag in application.cfc. You use the "this" scope before the first cffunction to set the application wide values. There is a good quick reference from Ray Camden on application.cfc that can help you choose to stay with application.cfm or use the applica

Re: Session variables problem

2006-09-25 Thread Charlie Griefer
On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > >sounds like sessions aren't enabled. > > > >the 'action' page that errors out...it's within the same directory (or > >subdirectory) of the Application.cfc that's enabling the session > >management? > > > >On 9/25/06, Richard White <[EMAIL PROT

RE: Session variables problem

2006-09-25 Thread Ian Skinner
In an application.cfm or application.cfc file so that it is automatically included at the top of every page in the same directory and its sub-directories. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko |

Re: Session variables problem

2006-09-25 Thread Teddy Payne
tag is typically stored in the application.cfm file. Though if you are using CF MX, application.cfc is recommended more as it provides more features, organization and better event based code use. Teddy On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > > >sounds like sessions aren't enabled

Re: Session variables problem

2006-09-25 Thread Richard White
> >sounds like sessions aren't enabled. > > > >the 'action' page that errors out...it's within the same directory > (or > >subdirectory) of the Application.cfc that's enabling the session > >management? > > > >On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > > > > oh i see, i have just put

Re: Session variables problem

2006-09-25 Thread Teddy Payne
This sounds like the culprit. In order to use a certain session with a certain application name, the application.cfm or application.cfc needs to be ina parent folder or in the same folder. Example Assume foo.cfm is calling a session variable. \application.cfc \folder1\foo.cfm This would work.

Re: Session variables problem

2006-09-25 Thread Richard White
>sounds like sessions aren't enabled. > >the 'action' page that errors out...it's within the same directory (or >subdirectory) of the Application.cfc that's enabling the session >management? > >On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > oh i see, i have just put the tag at the top of

Re: Session variables problem

2006-09-25 Thread Richard White
>sounds like sessions aren't enabled. > >the 'action' page that errors out...it's within the same directory (or >subdirectory) of the Application.cfc that's enabling the session >management? > well in the root folder there is a default folder called _mmServerScripts, this is where the application

Re: Session variables problem

2006-09-25 Thread Teddy Payne
How are you calling the second page from the main page? cflocation? Teddy On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > > >what do you see if you do a ? > > if i do this in the action page it says variable session is undefined. > > i have actually changed it as you said in the main pag

RE: Session variables problem

2006-09-25 Thread Sandra Clark
http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 2006 3:46 PM To: CF-Talk Subject: Re: Session variables problem >what do you see if you do a ? if i do this in the act

Re: Session variables problem

2006-09-25 Thread Richard White
>Are session variables enabled from the CF administrator? > >Teddy > >On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: >> thanks, yes they are enabled in the cf admin and in the cfapplication tag in the application.cfc ~| Int

Re: Session variables problem

2006-09-25 Thread Charlie Griefer
sounds like sessions aren't enabled. the 'action' page that errors out...it's within the same directory (or subdirectory) of the Application.cfc that's enabling the session management? On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > >what do you see if you do a ? > > if i do this in the a

Re: Session variables problem

2006-09-25 Thread Teddy Payne
Are session variables enabled from the CF administrator? Teddy On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > > >1) is session management enabled in a tag? > >2) that's some ugly naming conventions right there. too many > >variables with the same name. > >3) why not just create the stru

Re: Session variables problem

2006-09-25 Thread Richard White
>what do you see if you do a ? if i do this in the action page it says variable session is undefined. i have actually changed it as you said in the main page and created the structure straight in the session variable. I am the session.student.name fine in the main page but it is not working i

Re: Session variables problem

2006-09-25 Thread Richard White
>what do you see if you do a ? if i do this in the action page it says variable session is undefined. i have actually changed it as you said in the main page and created the structure straight in the session variable. I am the session.student.name fine in the main page but it is not working i

Re: Session variables problem

2006-09-25 Thread Charlie Griefer
what do you see if you do a ? On 9/25/06, Richard White <[EMAIL PROTECTED]> wrote: > >1) is session management enabled in a tag? > >2) that's some ugly naming conventions right there. too many > >variables with the same name. > >3) why not just create the struct in the session? > > > > > >

Re: Session variables problem

2006-09-25 Thread Richard White
>1) is session management enabled in a tag? >2) that's some ugly naming conventions right there. too many >variables with the same name. >3) why not just create the struct in the session? > > > session.student = structNew(); > session.student.name = "Fred"; > lol, very goodpoint, thank y

Re: Session variables problem

2006-09-25 Thread Charlie Griefer
1) is session management enabled in a tag? 2) that's some ugly naming conventions right there. too many variables with the same name. 3) why not just create the struct in the session? session.student = structNew(); session.student.name = "Fred"; 4) if you do plan on copying a local

Session variables problem

2006-09-25 Thread Richard White
I am having trouble with the session variables. I know there must be a simple solution but this is the first time i have used them and not sure what i am doing wrong. I am trying to assign a structure to the session variable in one page and then use that session structure in the forms action pa