PHP / Apache / ForceType / Sessions
Hi there:I have a forcetype directive in an .htaccess file thus:
<FilesMatch "^foo$">
ForceType application/x-httpd-php
</FilesMatch>
This works great, runs a file "foo" as php and parses out the arguments after the trailing slash with no problem (i.e. domain.com/foo/123).
"foo" creates a session and includes another php file "bar.php".
Here's the odd stuff:
- When bar.php displays as the included file from being included by foo, the session exists (it shouldn't presumably - until the file is refreshed, which it hasn't been...)
- bar.php has a form which it submits, now directly to itself, bar.php; one would expect the session to still be available - unfortunately, it isn't though...
Is there something I'm not understanding about the effect of forcetype ?
Cheers!
Chris