Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
3 | if ($cookie_state == 1) |
||
4 | { |
||
5 | if (isset($_COOKIE['TestCookie'])) |
||
6 | { |
||
7 | setcookie('TestCookie', 'test', time()); |
||
8 | echo 'Cookies werden unterstützt!'; |
||
9 | } |
||
10 | else |
||
11 | { |
||
12 | echo 'Es werden keine Cookies unterstützt!'; |
||
13 | } |
||
14 | } |
||
15 | else |
||
16 | { |
||
17 | setcookie('TestCookie', 'test'); |
||
18 | header('Location: '.$_SERVER['PHP_SELF'].'?cookie_state=1'); |
||
19 | } |
||
20 | |||
21 | ?> |