i have a site which uses a login, i recently chaved the log out procedure to us
<cfset temp = structClear(session)>
the old code did things like
<cfset session.isAdmin = false>
<cfset session.userId= "">
then the user is redirected to the login page
<cflocation url="/Login/p_Login.cfm?st
atusMsg=lo
gout">
which worked fine wiht the old code, with the new strucclear call i get an error in cfapplication
<cfapplication name = "AllTouchPublic"
sessionmanagement = "yes"
setclientcookies="no"
sessiontimeout="#createTim
eSpan(0,0,
20,0)#"
>
<cfcookie name="cfid" value="#session.cfid#"> <!---bombs out here - there is no session set --->
<cfcookie name="cftoken" value="#session.cftoken#">
i know the error is as a result of using
<cfset temp = structClear(session)>
but why isn't the session recreated on loading the page, i actually need to close the browser, FireFox, open a nagin and then visit the site
im working on a mosr dynamic version of teh original code to clear teh session but would really like to have a nice clean one line clear. Any ideas?
TIA
Start Free Trial