#23681 [NEW]: Unclear error msg. when PHPSESSID manually deleted from URL by user
| From: | php at lapage dot com | Date: | Sun, 18 May 2003 15:41:04 +0000 |
| Subject: | #23681 [NEW]: Unclear error msg. when PHPSESSID manually deleted from URL by user | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39877@lists.php.net to get a copy of this message | ||
From: php at lapage dot com
Operating system: Linux
PHP version: 4.3.1
PHP Bug Type: Session related
Bug description: Unclear error msg. when PHPSESSID manually deleted from URL by user
Request for a better error msg.
If the user disables cookies and changes the URL to
http://domain.tld/form.php?PHPSESSID=
Then the resulting Apache 1.3 error log reads:
PHP Warning: session_start(): The session id contains illegal characters,
valid characters are only a-z, A-Z and 0-9 in /zz/zzdomain/www/form.php on
line 3
PHP Warning: Unknown(): The session id contains illegal characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0
PHP Warning: Unknown(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct
(/tmp_php/zzdomainzz) in Unknown on line 0
<?php
session_start();
@$ct= ++$_SESSION['count'];
echo<<<EOF
[$ct]<br><form method="get">
See hidden input<input type="submit" name="submit"
value="Test"></form>
<a href="$PHP_SELF?foo=bar">See new href</a>
EOF;
?>
--
Edit bug report at http://bugs.php.net/?id=23681&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23681&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23681&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23681&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23681&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23681&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23681&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23681&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23681&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23681&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23681&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23681&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23681&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23681&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23681&r=gnused