Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / December 2004



Tip: Looking for answers? Try searching our database.

Multiple Session Management

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
harshalsuri - 29 Dec 2004 10:31 GMT
I am building an application which will be used by thousands of users simultaneously. So session handling is most important aspect. I don't want to use cookies or client variables.
Al69 - 29 Dec 2004 18:59 GMT
You can use CF's 'session' scoped variables to do this and you can do it
without the use of cookies by doing the following:  

<!--- Application.cfm --->
<cfapplication name="your_web_app"
                        sessionmanagement="Yes"
                        setclientcookies="No"
                        clientmanagement="Yes"
                        sessiontimeout="#CreateTimeSpan(0, 6, 0, 0)#" />

<!--- Any links get the #URLToken# appended to them --->
<cfoutput><a href="index.cfm?#URLToken#">home</a></cfoutput>

<!--- Any re-directs have the URLToken appended to them --->
<cflocation url="index.cfm" addtoken="Yes" />
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.