ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 19th, 2005, 12:35 PM
mhasan1 mhasan1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 7 mhasan1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 31 sec
Reputation Power: 0
how to maintain state using session variables

hi guys,
i just started working on dynamic web applns and i want to know how i can use the session variables to maintain users state.
any help is welcome

Reply With Quote
  #2  
Old January 19th, 2005, 02:50 PM
VelvettFogg VelvettFogg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 34 VelvettFogg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 m 46 sec
Reputation Power: 4
Not sure what kind of help you are looking for here. Session variables are held on the server side, you can set their values just like any other variable. When new pages are loaded to the browser, you can check the value of the session to determine the state.

Reply With Quote
  #3  
Old January 19th, 2005, 03:48 PM
mhasan1 mhasan1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 7 mhasan1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 31 sec
Reputation Power: 0
ok if thats the case then i suppose i have to enable sessionmanagement in <cfapplication> tag and then include <cfapplication> tag on each page using session variable.and can i randomly generate cfid and cftokens?actually i wanted to know about cfids and cftokens.
my mistake

Reply With Quote
  #4  
Old January 19th, 2005, 05:13 PM
VelvettFogg VelvettFogg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 34 VelvettFogg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 m 46 sec
Reputation Power: 4
Ahh.. cookies...

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17915

check that

Reply With Quote
  #5  
Old January 19th, 2005, 06:41 PM
mhasan1 mhasan1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 7 mhasan1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 31 sec
Reputation Power: 0
thanks buddy i'll take a look at it

Reply With Quote
  #6  
Old January 20th, 2005, 09:39 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,700 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 17 h 45 m 21 sec
Reputation Power: 53
Quote:
Originally Posted by mhasan1
ok if thats the case then i suppose i have to enable sessionmanagement in <cfapplication> tag and then include <cfapplication> tag on each page using session variable.and can i randomly generate cfid and cftokens?actually i wanted to know about cfids and cftokens.
my mistake


I think you need to do some reading, any good book on CF will cover this in detail. You don't need to include the <cfapplication> tag on each page, but it does need to run on each request. You can place it in the Application.cfm file which automatically runs before any other page in your application runs. Place this file in your application's root director. Again, a good book will cover this, and it's fully explained in the documentation as well.

CFID and CFTOKEN are automatically created by the CF server when you are using the <cfapplication> tag.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > how to maintain state using session variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT