# No active session to apply key to

**URL:** <https://forum.search-guard.com/t/no-active-session-to-apply-key-to/402>\
**Category:** Search Guard\
**Created:** [February 26, 2017, 12:18pm UTC](https://forum.search-guard.com/t/no-active-session-to-apply-key-to/402 "2017-02-26T12:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guybr123](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@guybr123](https://forum.search-guard.com/u/guybr123)\
**Post date:** [February 26, 2017, 12:18pm UTC](https://forum.search-guard.com/t/no-active-session-to-apply-key-to/402/1 "2017-02-26T12:18:16Z")

</div>

Hi.

Using ES, kibana, search-guard and search-guard-kibana-plugin - All v5.2.1

Im trying to set new attribute in the session, with:

`request.auth.session.set('lastAccess', currentAccessTime);`

the result is an error:

> log [18:12:07.300] [error][searchguard] An error occurred while computing auth headers, clearing session: Error: No active session to apply key to

The request.auth.artifacts is undefined.

Any idea?
