Mercurial > pub > Impl
view Lib/Security.pm @ 95:67eb8eaec3d4
Added a security authority property to the Context and Security classes
Added a WriteResponse method to the SecureCookie class
Added a setCookie method to the Response class
author | wizard |
---|---|
date | Thu, 29 Apr 2010 02:21:27 +0400 |
parents | 16ada169ca75 |
children |
line wrap: on
line source
use strict; package Security; use constant { AUTH_FAILED => 0, AUTH_SUCCESS => 1, AUTH_INCOMPLETE => 2, AUTH_NOAUTH => 3 }; my $CurrentSession; sub CurrentSession { my ($class,$newSession) = @_; $CurrentSession = $newSession if @_>=2; return $CurrentSession; } 1;