What onsessionstart() do in coldfusion?

Pallavi Suryakant Vibhute
Pallavi Suryakant Vibhute

Posted On: Apr 10, 2020

 

The onsessionstart function in Coldfusion is used to initialize the session scope data or session-specific application scope variables. This method can also access the variable scope if the application.cfc file has an onRequest method. It doesn’t return any value and runs when a session starts.

//Syntax
<cffunction name="onSessionStart" returnType="void">
...
</cffunction>

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Coldfusion interview Questions

    What is coldfusion?

    ColdFusion is a commercial rapid development framework by Adobe. It was developed by J. J. Allaire in 1995 for providing an easier way to connect static Html Pages to database. It is completely writte...

    Coldfusion interview Questions

    Enlist few advantages of using ColdFusion?

    Below are a few advantages of using ColdFusion areIt is easy to use. Provides high performance at runtime Easy to Integrate Inbuilt user interface elements Supports .Net objects Integration w...

    Coldfusion interview Questions

    Fow what ColdFusion is used?

    ColdFusion is mainly used for creating data-driven websites however you can it for creating REST web services....