help with duplicating / clearing session scope

2003-08-14 Thread Jim
I'm duplicating my session scope to the request scope in my
Application.cfm, and then duplicating them back to the session scope in my
OnRequestEnd.cfm and it works well, and prevents me from doing a lot of
locking.

However, I'm stuck now on actually clearing the session vars out, say
when a user logs out. I want to keep some variables, and I seem to be
stuck in a loop of I clear the session vars out but they get written
back from the request scope immediately.

It's midnight and I'm probably a bit brain dead but was wondering if
anyone has used this system and could briefly explain what I'm missing
:)

Thanks,
jim


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: help with duplicating / clearing session scope

2003-08-14 Thread Haggerty, Mike
to copy the session scope: 
request.session = duplicate(session);
 
to delete the session scope: 
structClear(session);
structDelete(request, session);
 
M

-Original Message- 
From: Jim [mailto:[EMAIL PROTECTED] 
Sent: Tue 8/5/2003 8:33 PM 
To: CF-Talk 
Cc: 
Subject: help with duplicating / clearing session scope



I'm duplicating my session scope to the request scope in my
Application.cfm, and then duplicating them back to the session scope in my
OnRequestEnd.cfm and it works well, and prevents me from doing a lot of
locking.

However, I'm stuck now on actually clearing the session vars out, say
when a user logs out. I want to keep some variables, and I seem to be
stuck in a loop of I clear the session vars out but they get written
back from the request scope immediately.

It's midnight and I'm probably a bit brain dead but was wondering if
anyone has used this system and could briefly explain what I'm missing
:)

Thanks,
jim



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



help with duplicating / clearing session scope

2003-07-29 Thread Jim
I'm duplicating my session scope to the request scope in my
Application.cfm, and then duplicating them back to the session scope in my
OnRequestEnd.cfm and it works well, and prevents me from doing a lot of
locking.

However, I'm stuck now on actually clearing the session vars out, say
when a user logs out. I want to keep some variables, and I seem to be
stuck in a loop of I clear the session vars out but they get written
back from the request scope immediately.

It's midnight and I'm probably a bit brain dead but was wondering if
anyone has used this system and could briefly explain what I'm missing
:)

Thanks,
jim

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



help with duplicating / clearing session scope

2003-07-29 Thread Mike Mertsock
If you want to keep some of your session variables anyway, you might have to set some 
sort of variable that OnRequestEnd.cfm will look at to see whether to clear out those 
specific session scope vars you want out. Maybe in OnRequestEnd.cfm you use cfparam 
to default a request.dropSessionStatus variable to false.

If the user logs out, you set that variable to true. Then in OnRequestEnd.cfm you 
could check the value of that boolean and act appropriately? My brain is fried too, 
there's probably a more elegant solution than us night owls can figure out :)

Mike Mertsock
Alferd University Web Team

I'm duplicating my session scope to the request scope in my
Application.cfm, and then duplicating them back to the session scope in my
OnRequestEnd.cfm and it works well, and prevents me from doing a lot of
locking.

However, I'm stuck now on actually clearing the session vars out, say
when a user logs out. I want to keep some variables, and I seem to be
stuck in a loop of I clear the session vars out but they get written
back from the request scope immediately.

It's midnight and I'm probably a bit brain dead but was wondering if
anyone has used this system and could briefly explain what I'm missing
:)

Thanks,
jim
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4