#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<${symbol_pound}import "../layout/defaultLayout.ftl.html" as layout> <@layout.myLayout
"Home page">
Session Cookie support
And currently the username stored in the session is: ${symbol_dollar}{username}
If you use firebug or any other tool you can spot the session attached to the request.
@layout.myLayout>