|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ![]() |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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 ![]() |
|
#4
|
|||
|
|||
|
Ahh.. cookies...
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17915 check that ![]() |
|
#5
|
|||
|
|||
|
thanks buddy i'll take a look at it
![]() |
|
#6
|
|||
|
|||
|
Quote:
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > how to maintain state using session variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|