Alexis Sukrieh > Dancer-2.0000_01 > Dancer::Core::Context

Download:
Dancer-2.0000_01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 2.0000_01   Source  

NAME ^

Dancer::Core::Context - handles everything proper to a request's context.

VERSION ^

version 2.0000_01

ATTRIBUTES ^

session

Handle for the current session object, if any

destroyed_session

We cache a destroyed session here; once this is set we must not attempt to retrieve the session from the cookie in the request. If no new session is created, this is set (with expiration) as a cookie to force the browser to expire the cookie.

METHODS ^

has_session

Returns true if session engine has been defined and if either a session object has been instantiated in the context or if a session cookie was found and not subsequently invalidated.

destroy_session

Destroys the current session and ensures any subsquent session is created from scratch and not from the request session cookie

AUTHOR ^

Dancer Core Developers

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Alexis Sukrieh.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: