Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing the user_id

Status
Not open for further replies.

wouter

Technical User
Jul 3, 2000
45
NL
Is there another quick way to temporarily store a username? I took a look at the <cfapplication> tag, but i don't think it server the purpose i'd like to reach. It does however set a sessiontimeout, but i don't know if i can use that to deny access for that user to the application after 30 minutes or so.

Wouter

Wouter
zure_zult@hotmail.com
To me, boxing is like a ballet, except there's no music, no choreography, and the dancers hit each other.
 
You can use session variables. They last as long as the users session goes. You can even let session variables expire using #CreateTimeSpan(&quot;0&quot;,&quot;0&quot;,&quot;30&quot;,&quot;0&quot;)#

Take a look at this

<cfapplication applicationtimeout=&quot;#CreateTimeSpan(&quot;0&quot;,&quot;1&quot;,&quot;0&quot;,&quot;0&quot;)#&quot; sessionmanagement=&quot;yes&quot; sessiontimeout=&quot;#CreateTimeSpan(&quot;0&quot;,&quot;0&quot;,&quot;30&quot;,&quot;0&quot;)#&quot; name=&quot;MySessionName&quot;>

<cfset session.UserID = #UserID#>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top