<linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../actix_session/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass="location">Crate actix_session</p><divclass="block version"><p>Version 0.5.0-beta.1</p></div><divclass="sidebar-elems"><aid="all-types"href="all.html"><p>See all actix_session's items</p></a><divclass="block items"><ul><li><ahref="#structs">Structs</a></li><li><ahref="#enums">Enums</a></li><li><ahref="#traits">Traits</a></li></ul></div><pclass="location"></p><divid="sidebar-vars"data-name="actix_session"data-ty="mod"data-relpath="../"></div></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../brush.svg"width="18"height="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
<aid="settings-menu"href="../settings.html"><imgsrc="../wheel.svg"width="18"height="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Crate <aclass="mod"href="">actix_session</a><buttonid="copy-path"onclick="copy_path(this)">⎘</button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../src/actix_session/lib.rs.html#1-411"title="goto source code">[src]</a></span></h1><divclass="docblock"><p>Sessions for Actix Web.</p>
<p>Provides a general solution for session management. Session middleware could provide different
implementations which could be accessed via general session API.</p>
<p>This crate provides a general solution for session management and includes a cookie backend.
Other backend implementations can be built to use persistent or key-value stores, for example.</p>
<p>In general, some session middleware, such as a <ahref="../actix_session/struct.CookieSession.html"title="CookieSession"><code>CookieSession</code></a> is initialized and applied.
To access session data, the <ahref="../actix_session/struct.Session.html"title="Session"><code>Session</code></a> extractor must be used. This extractor allows reading
<table><trclass="module-item"><td><aclass="struct"href="struct.CookieSession.html"title="actix_session::CookieSession struct">CookieSession</a></td><tdclass="docblock-short"><p>Use cookies for session storage.</p>
</td></tr><trclass="module-item"><td><aclass="struct"href="struct.Session.html"title="actix_session::Session struct">Session</a></td><tdclass="docblock-short"><p>The high-level interface you use to modify session data.</p>
<table><trclass="module-item"><td><aclass="enum"href="enum.SessionStatus.html"title="actix_session::SessionStatus enum">SessionStatus</a></td><tdclass="docblock-short"><p>Status of a <ahref="../actix_session/struct.Session.html"title="Session"><code>Session</code></a>.</p>
<table><trclass="module-item"><td><aclass="trait"href="trait.UserSession.html"title="actix_session::UserSession trait">UserSession</a></td><tdclass="docblock-short"><p>Extraction of a <ahref="../actix_session/struct.Session.html"title="Session"><code>Session</code></a> object.</p>