sessions not working
<?php
session_start();
if (isset($_POST[submit])) {
if(!isset($_SESSION['cheese'])) {
$_SESSION['cheese'] = 1;
} else {
$_SESSION['cheese']++;
}
}
?>
<html><head><title>Session Test</title></head>
<body>
Current Session Variable value is: <?= $_SESSION['cheese'] ?> <br/>
<form method="post">
<input type=submit value=click name=submit>
</form>
</body>
</html>
I click it once and session variable becomes 1.
I click it again, but session variable does not increase!
Apache is 2.2.9
PHP is installed according to
http://apacheguide.org/
mbstring.dll and mysql.dll extensions are uncommented
short open tag is on
PHP is 5.2.6
How to solve this problem?
.
Relevant Pages
- Re: [Full-disclosure] Bug with .php extension?
... the behavior that is i.e. demonstrated on default installations of Apache, only that this time not mod_negotiation, but mod_mime is responsible. ... Unknown extensions contribute nothing, and since they're unknown, it isn't known which category they aren't known for, so nothing happens with them. ... - Disable PHP for the upload area (is this possible? ... you would want your user upload area to be in a totally different place from your DocumentRoot so you don't get anything set on DocumentRoot leaking into the writable subdirectory. ... (Full-Disclosure) - Re: Cant load extensions: "The specified module could not be found"
... I get the same problem with some other extensions as well -- not just cURL. ... These give the same error message (apart from the DLL name of course). ... I know that, generally, PHP *can* see the DLLs in the extensions folder. ... I'm running Apache 2 with PHP 4.4.6 on Windows XP. ... (alt.php) - RE: STG Security Advisory: [SSA-20041215-17] Vulnerability of uploading files with multiple exten
... "multiple extensions" behaviour in the past. ... There are a huge number of 3rd party PHP scripts out there ... upload a file without a registered MIME type are somewhat reduced. ... extensions behaviour for handlers as there seemed no legitimate ... (Bugtraq) - Loading DLLs from different path
... PHP is a popular server-side scripting language for web servers. ... It popularity is mainly due that it has many 3rd party extensions. ... The issue is that our DLL is dependent on RPC application server API DLLs in a different folder. ... The problem is that we never recommended putting dlls on the PATH nor do we recommend for our customers to have copies of DLLS over all the place. ... (microsoft.public.win32.programmer.kernel) - Re: php in free(): error: junk pointer, too high to make sense
... I'm using FreeBSD 6.1 release on i386. ... I have a problem with pear and apache. ... php in free: error: junk pointer, ... Try reversing the order of extensions, ... (freebsd-stable) |
|