Accueil Features Demos Download Installation User Manual Developer Manual Relation function Credits

blabla

inc/cookies.php

Handles cookies.
Note that the functions are in this file, but that the calls to the functions are in the api.php after including site/configuration.php and only if api.php is invoked by index.php. This order allows to access cookie functions in configuration.php
The functions are written because they handle transparently the prefix.

Globals


$swCookiePrefix is added to allow to have multiple wikis on the same domain.

Functions

handleCookie($id,$default, $period = 9000000)

Handles a cookie based on user request. Priority is $_POST over $_GET over $_COOKIE.

swGetCookie($id)

Gets the value of a cookie.

swSetCookie($id,$value,$period = 9000000)

Sets a cookie manually with key, value and period in seconds.

File structure inc folder