Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,650 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,148 people online right now. Registration is fast and FREE... Join Now!




Session Variables

 
Reply to this topicStart new topic

Session Variables, Set them in Application.cfm or index?

wblakenc
post 15 Aug, 2008 - 12:43 PM
Post #1


New D.I.C Head

*
Joined: 17 Jul, 2008
Posts: 6



Thanked 1 times
My Contributions


I am confused about Session variables and I think they are the cause of my problem reported in another post further down the page. Is there a best usage practice when it comes to setting SESSION variables? Should they be set in the Application.cfc or Auth.cfc file? Is there any time when you would or would NOT set them there? Or is it better just to set all session variables on the index (or whatever first page)?

I am setting some variables in the Application, some in the Auth (my authorization logic), and in the index page. Now all the variable names are different so there is no problem with that, however they are used in various different places all over the application.

Ideas?
User is offlineProfile CardPM

Go to the top of the page

nbrooks427
post 16 Oct, 2008 - 09:25 AM
Post #2


New D.I.C Head

*
Joined: 16 Oct, 2008
Posts: 4

QUOTE(wblakenc @ 15 Aug, 2008 - 01:43 PM) *

I am confused about Session variables and I think they are the cause of my problem reported in another post further down the page. Is there a best usage practice when it comes to setting SESSION variables? Should they be set in the Application.cfc or Auth.cfc file? Is there any time when you would or would NOT set them there? Or is it better just to set all session variables on the index (or whatever first page)?

I am setting some variables in the Application, some in the Auth (my authorization logic), and in the index page. Now all the variable names are different so there is no problem with that, however they are used in various different places all over the application.

Ideas?



I create sessions variables and give them default values in application.cfm. Once my user logs into the application I then set the variables. I even set some variables after a query. Hope this helps.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 05:10AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month