• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

NetConnection.setCredentials( ) Method > NetConnection.setCredentials( ) Method

Name

NetConnection.setCredentials( ) Method

Synopsis

                     myNetConnectionObject.setCredentials(userid, password)

Arguments

userid

A username to be used by the server for authentication.

password

A password to be used by the server for authentication.

Description

The setCredentials( ) method is used when you have an authentication routine on your server that works in tandem with a credentials header. After calling setCredentials( ), the credentials header is attached to every AMF packet generated by the client and going to the server.

As of this writing, only JRun 4 and ColdFusion MX support the credentials header. Calling setCredentials( ) is the same thing as calling the addHeader( ) method, like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint