Advertisement

07.11.2008 at 06:06AM PDT, ID: 23557021
[x]
Attachment Details

session error after using structClear(session)

Asked by Jester_48 in Cold Fusion Markup Language

Tags: , , ,

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?statusMsg=logout">  

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="#createTimeSpan(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?

TIAStart Free Trial
 
Loading Advertisement...
 
[+][-]07.11.2008 at 06:16AM PDT, ID: 21982061

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 07:51AM PDT, ID: 21982883

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 08:04AM PDT, ID: 21983014

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 08:11AM PDT, ID: 21983073

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 08:23AM PDT, ID: 21983190

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 08:34AM PDT, ID: 21983319

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 08:48AM PDT, ID: 21983448

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 08:55AM PDT, ID: 21983520

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 09:20AM PDT, ID: 21983742

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 09:50AM PDT, ID: 21983988

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 09:53AM PDT, ID: 21984005

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 10:14AM PDT, ID: 21984192

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 10:16AM PDT, ID: 21984218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 10:26AM PDT, ID: 21984293

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 12:07PM PDT, ID: 21985084

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 08:41AM PDT, ID: 22089563

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cold Fusion Markup Language
Tags: cfml, browser, session, structclear
Sign Up Now!
Solution Provided By: Jester_48
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.25.2008 at 08:48AM PDT, ID: 22089643

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906