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

Join 136,530 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,819 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
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
+Quote Post

nbrooks427
RE: Session Variables
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
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 09:56PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month