Jump to content

API:EPrints/Cookie

From EPrints Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::Cookie - Cookie utility methods


DESCRIPTION

This module contains utility methods for generating and getting cookies.


METHODS

cookie

$value = cookie( $repo, $name )

Return the value of the cookie named $name.


set_cookie

set_cookie( $repo, $name, $value [, %opts ] )

Set a cookie for the current session for HTTP.


set_secure_cookie

set_secure_cookie( $repo, $name, $value [, %opts ] )

Set a cookie for the current session for HTTPS.


COPYRIGHT

Copyright 2000-2012 University of Southampton.

This file is part of EPrints http://www.eprints.org/.

EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints. If not, see http://www.gnu.org/licenses/.