Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
drmaves #1
Deleting or Modifying Session Variables in anothersession
Is it possible to delete or clear session variable from another session?
Here's my scenario.
A user opens the public part of a web site which uses an application.cfc and
the application name "abc".
\abc\application.cfc
They then access a private area of the site which is contained within a
subdirectory (bc) of the main site.
\abc\bc\application.cfc
The private area uses a different application.cfc and a different application
name - "abcbc".
The user then makes a change in a form which should ideally affect the session
variables in the first session.
Is there a way to make changes to or delete variables in another session? If
so how would I identify them?
drmaves Guest
-
#39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug... -
#39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables
From: krudtaa at yahoo dot com Operating system: All PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug... -
#25629 [Opn->Bgs]: session cookie being set to deleted when deleting a session
ID: 25629 Updated by: sniper@php.net Reported By: john at tarot dot com -Status: Open +Status: Bogus... -
deleting session variables
Is there a way to wipe out all previous session variables with one command? Thx Tim Winters Creative Development Manager Sampling... -
fork and modifying variables inside the new process
irb(main):001:0> a = true => true irb(main):002:0> fork do irb(main):003:1* a = false irb(main):004:1> end => 2525 irb(main):005:0> a => true -
Neculai Macarie #2
Re: Deleting or Modifying Session Variables in another session
> Is there a way to make changes to or delete variables in another session?
IfYou could make a list of the active sessions in the server scope. This will> so how would I identify them?
allow you to access/modify the data from all cfm files.
--
<mack />
Neculai Macarie Guest
-
drmaves #3
Re: Deleting or Modifying Session Variables in anothersession
I'm not sure how that would help or how to generate a list like that.
What I would need to be able to do is set the session variables in the first
session to new values using something like <cfset> so I need to know how to
address those variables. As I see it now something like <cfset session.name =
"Smith"> would only affect the current session's variable. Is there a prefix to
"session" that would identify which session it is?
drmaves Guest
-
Neculai #4
Re: Deleting or Modifying Session Variables in another session
> I'm not sure how that would help or how to generate a list like that.
first
to
session.name =
prefix to
On session start you would put each session in the server scope:
server.sessions[session.sessionid] = session
then, in the second app:
server.sessions["#first_app_name#_"&session.CFID&"_"&session.cftok en].name =
"Smith"
--
<mack />
Neculai Guest



Reply With Quote

