org.springframework.web.context.annotation

## Annotation Type SessionScope

-     @Target(value={TYPE,METHOD})
       @Retention(value=RUNTIME)
       @Documented
       @Scope(value="session")
      public @interface SessionScope

  `@SessionScope` is a specialization of `@Scope` for a component whose lifecycle is bound to the current web session.

  Specifically, `@SessionScope` is a composed annotation that acts as a shortcut for `@Scope("session")` with the default `proxyMode()` set to `TARGET_CLASS`.

  `@SessionScope` may be used as a meta-annotation to create custom composed annotations.

  Since:
    4.3
  Author:
    Sam Brannen
  See Also:
    `RequestScope`, `ApplicationScope`, `Scope`, `WebApplicationContext.SCOPE_SESSION`, `SessionScope`, `Component`, `Bean`

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `ScopedProxyMode` | `proxyMode` Alias for `Scope.proxyMode()`.

- - ### Element Detail

    - #### proxyMode

          @AliasFor(annotation=Scope.class)
          public abstract ScopedProxyMode proxyMode

      Alias for `Scope.proxyMode()`.

      Defaults to `ScopedProxyMode.TARGET_CLASS`.

      Default:
        org.springframework.context.annotation.ScopedProxyMode.TARGET_CLASS