Raymond,
Could you please explain, how i can set a safe environment
to log
a user into the application and log the user out..
I tried the structClear(Session) and it messed things up..
how else can i use structClear(Session) safely, were you referring
to some like
StructClear(MyApp) , where "MyApp" being the" Application name in
Application.cfm"
or is there a better way? i need to pass the Userid and password
through a form
and initialize variables from query in the application.cfm.
Whats the best way of doing this?
Appretiate your help!!
Thanks
Joe
----- Original Message -----
From: "Raymond K. Camden" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 26, 2000 2:35 PM
Subject: RE: Killing Session & Back Button
> You should _never_ use this code. It may work to log you out, but if your
> using CF 4.5, the server will throw an error next time you try to set a
> session var. Before 4.5, StructClear would not touch the 'special' Session
> vars that CF uses to identify you. With CF 4.5 and higher, StructClear
will
> nuke them.
>
> You can do one of two things:
>
> 1) Keep all your stuff in a substruct, like Session.MyApp, then do
> StructClear on that.
>
> 2) Use StructDelete to nuke individual keys.
>
>
> 3 hours till vacation.
>
> =======================================================================
> Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
> Allaire Certified Instructor and Member of Team Allaire
>
> Email : [EMAIL PROTECTED]
> ICQ UIN : 3679482
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
>
> > -----Original Message-----
> > From: Mark Warrick [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 26, 2000 12:15 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Killing Session & Back Button
> >
> >
> > I use the following code to kill session variables.
> >
> > <cfoutput>
> > #StructClear(session)#
> > </cfoutput>
> >
> > If, by chance, a user tries to backup, all they are going to see
> > is the same
> > thing that they saw before the hit the logout button. If they try to do
> > anything else, my security logic kicks them back to the login page.
> >
> > ---mark
> >
> >
> >
> > -------------------------
> > Mark Warrick
> > (714) 939-6431
> > The Sistonia Corporation
> > [EMAIL PROTECTED]
> > http://www.sistonia.com
> >
> > > -----Original Message-----
> > > From: Steve Reich [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 25, 2000 11:48 AM
> > > To: CF Talk
> > > Subject: Killing Session & Back Button
> > >
> > >
> > > I have a link on my site for users to log out. This takes them to a
page
> > > that kills all session variables and then directs them back to the
login
> > > page. However, if they hit the back button, they can get back to
> > > where they
> > > were when they logged out, refresh the page, and their variables
> > > are reset.
> > > How can I kill the variables so the page isn't available with the back
> > > button without them?
> > >
> > > TIA
> > >
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > Steve Reich
> > > Backsoft Corporation
> > > 6960 Professional Parkway East
> > > Suite 100
> > > Sarasota, Florida 34240
> > > Toll Free: (888) 222-6047
> > > Phone: (941) 907-6655 - Ext.1038
> > > Fax: (941) 907-6643
> > >
> > > email: [EMAIL PROTECTED]
> > > web: http://www.backsoft.com
> > >
> > > "Any sufficiently advanced technology
> > > is indistinguishable from magic."
> > >
> > > - Arthur C. Clarke
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > > ------------------------------------------------------------------
> > > ------------
> > > Archives: http://www.eGroups.com/list/cf-talk
> > > To Unsubscribe visit
> > > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> > > _talk or send a message to [EMAIL PROTECTED] with
> > > 'unsubscribe' in the body.
> > >
> >
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.