core/play/src/main/java/play/mvc/Controller.java
@Deprecated
  public static void session(String key, String value) {
    session().put(key, value);
  }
@Deprecated
  public static void session(String key, String value) {
    session().put(key, value);
  }
@ Deprecated public static void session ( String key , String value ) { session ( ) . put ( key , value ) ; }
Puts a new value into the current session.

@param key the key to set into the session
@param value the value to set for <code>key</code>
@deprecated Deprecated as of 2.7.0. Use {@link Result} instead.
Puts a new value into the current session .