session"

From Documentation
m
m (correct highlight (via JWB))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{ZKDevelopersGuidePageHeader}}
 
{{ZKDevelopersGuidePageHeader}}
  
[http://www.zkoss.org/javadoc/3.5.1/zk/org/zkoss/zk/ui/session.html <javadoc>org.zkoss.zk.ui.Session</javadoc>]
+
[http://www.zkoss.org/javadoc/3.5.1/zk/org/zkoss/zk/ui/session.html <javadoc type="interface">org.zkoss.zk.ui.Session</javadoc>]
  
:<tt>setAttribute</tt> : Sets the value of the specified custom attribute.
+
:<code>setAttribute</code> : Sets the value of the specified custom attribute.
:<tt>getAttribute</tt> : Returns the value of the specified custom attribute
+
:<code>getAttribute</code> : Returns the value of the specified custom attribute
:<tt>getNativeSession</tt> : Returns the native session.
+
:<code>getNativeSession</code> : Returns the native session.
:<tt>getRemoteAddr</tt> : Returns the Internet Protocol (IP) address of the client or last proxy that sent the first request creating this session.
+
:<code>getRemoteAddr</code> : Returns the Internet Protocol (IP) address of the client or last proxy that sent the first request creating this session.
:<tt>getDeviceType</tt> : Returns the device type that this session belongs to.
+
:<code>getDeviceType</code> : Returns the device type that this session belongs to.
  
In most cases, we use <tt>session</tt> to <tt>setAttribute</tt> and <tt>getAttribute</tt>.
+
In most cases, we use <code>session</code> to <code>setAttribute</code> and <code>getAttribute</code>.
  
 
{{ ZKDevelopersGuidePageFooter}}
 
{{ ZKDevelopersGuidePageFooter}}

Latest revision as of 10:40, 19 January 2022

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Session

setAttribute : Sets the value of the specified custom attribute.
getAttribute : Returns the value of the specified custom attribute
getNativeSession : Returns the native session.
getRemoteAddr : Returns the Internet Protocol (IP) address of the client or last proxy that sent the first request creating this session.
getDeviceType : Returns the device type that this session belongs to.

In most cases, we use session to setAttribute and getAttribute.



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.