How to access HttpSession and/or HttpRequest Scopes from CF


i've been given task integrate cf application authentication process java-based.  have been provided set of filters key process.  according documentation

 

"...each of filters places entregssotoken object httpsession , httprequest contexts use integrating application code.  entregssotoken object key integration point integrating application.  requestor’s ereg identity should obtained object.  below small snippet of code showing how application can determine requestor’s ereg identity."

 

(entregssotoken class contained in provided .jar file.)

 

here's sample code snippet:

 

string ereguserid = null;

entregssotoken entregssotoken = null;

entregssotoken = (entregssotoken) session.getattribute(entregssotoken.request_key);

if(entregssotoken != null)  {

       if(entregssotoken.isnewuserloggedin())  {

              // code handle user logged out elsewhere , logged in as

              // different user.  typically, data stored in session context

              // previous user needs cleaned , initialization

              // done newly logged in user.

              ereguserid = entregssotoken.getuserid();

       } else if(entregssotoken.isexpired() {

              // code here handle expired session.  should not happen

              // since session filter should handle it.

       } else  {

              ereguserid = entregssotoken.getuserid();

       }

}

 

if(ereguserid == null)  {

// code here handle non-logged in user

} else  {

       // code here handle logged in user

}

 

i hoping might able access token using coldfusion don't have clue how go that.  think maybe getpagecontext() function might provide key haven't been able determine how leverage that.  if provide insight how leverage function (or other means) provide functionality in example appreciated.

 

thanks,

ken

that possible. coldfusion version?



More discussions in Advanced Techniques


adobe

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?