Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

onSessionEnd actually doing anything?!

$
0
0

i want to do something very simple: when session expires, automatically redirect to a login page.

onSessionEnd looks like the logical choice, but i wasn't able to make it do anything at all!

any example that can show this function can do stuff is welcome, i've tried a bunch of them already, nothing works.

 

<cfcomponent output="false">

    <cfset this.name="testApp" />

    <cfset this.sessionManagement = true />

    <cfset this.applicationTimeOut = CreateTimeSpan(0,0,0,20) />

    <cfset this.sessionTimeout = createTimeSpan(0,0,0,20) />

    <cfset this.clientManagement = true />

 

    <cffunction name="onSessionEnd" access="public" returntype="void" output="false">

        <cflocation url="login.cfm">

    </cffunction>

</cfcomponent>


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>