BBjHttpSession::getAttribute (Deprecated)
BBjHttpSession is deprecated for BBj 21.00 and higher, and has been replaced by BBxWebSession::getAttribute.
Description
In BBj 12.00 and higher, this method returns the specified attribute value from the BBjHttpSession object.
Syntax
| 
                                                         Return Value  | 
                                                    
                                                         Method  | 
                                                
| 
                                                         string  | 
                                                    
                                                         getAttribute(string name)  | 
                                                
Parameters
| 
                                                         Parameter  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         name  | 
                                                    
                                                         Specifies the name of the attribute.  | 
                                                
Return Value
Returns a string.
Remarks
The example below shows getting the attribute ‘userID’ from the session within a BBjServlet.
Example
                                                     | 
                                                
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.