summary refs log tree commit diff stats
path: root/includes/session.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-11-19 17:27:03 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-11-19 17:27:03 -0500
commit24503e3abe705acde2df159aeae61be0d009f92e (patch)
tree8debbd53dcd0db2f5934c5e2af4e697e3787781d /includes/session.php
downloadfourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.gz
fourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.bz2
fourisland-24503e3abe705acde2df159aeae61be0d009f92e.zip
Imported sources
Diffstat (limited to 'includes/session.php')
-rw-r--r--includes/session.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/includes/session.php b/includes/session.php new file mode 100644 index 0000000..ff47e12 --- /dev/null +++ b/includes/session.php
@@ -0,0 +1,61 @@
1<?php
2/*
3 444444444
4 4::::::::4
5 4:::::::::4
6 4::::44::::4
7 4::::4 4::::4 Four Island
8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444
114::::::::::::::::4 includes/session.php
124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby.
16 44::::::44
17 4::::::::4
18 4444444444
19*/
20
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25session_start();
26
27function sess_exists($name)
28{
29 return(isset($_SESSION[$name]));
30}
31
32function sess_set($name,$value)
33{
34 $_SESSION[$name] = $value;
35}
36
37function sess_get($name)
38{
39 return $_SESSION[$name];
40}
41
42
43function sess_getifset($name)
44{
45 if (sess_exists($name))
46 {
47 return sess_get($name);
48 } else {
49 return false;
50 }
51}
52
53function sess_delete($name)
54{
55 if (sess_exists($name))
56 {
57 unset($_SESSION[$name]);
58 }
59}
60
61?>