Mercurial > pub > Impl
view Lib/Engine/Security/Cookies.pm @ 156:8638dd1374bf
Added template property to IMPL::Web::QueryHandler::PageFormat (this allows to specify exact template (filename, ref to a scalar, ref to a file handle)).
author | wizard |
---|---|
date | Tue, 05 Oct 2010 17:20:51 +0400 |
parents | 16ada169ca75 |
children |
line wrap: on
line source
use strict; package Engine::Security::Cookies; use Engine::CGI; use CGI::Cookie; sub ReadSecData { return Engine::CGI::Query->cookie('SecData'); } sub WriteSecData { my ($class,$data) = @_; Engine::CGI::Query->SetCookies(new CGI::Cookie(-name => 'SecData', -value => $data, -expires => '+1d')); } sub ReadSSID { return Engine::CGI::Query->cookie('SSID'); } sub WriteSSID { my ($class,$data) = @_; Engine::CGI::Query->SetCookies(new CGI::Cookie(-name => 'SSID', -value => $data, -expires => '+1d')); } 1;