Forum Moderators: coopster
I need to use sessions to tell the php file what folder to look in, but my sessions are lost when the .htaccess file calls the .php file. The .php file works fine when called from the browser.
Is there a workaround for this? A way to have my .php file call another .php file or something that would have the value?
All help is great!
but my sessions are lost when the .htaccess file calls the .php file. The .php file works fine when called from the browser.
This isn't making sense to me. An .htaccess file cannot "call" a .php file. I'll assume for now you mean that it is redirecting the request. When the requested .php file is then retrieved, your session data should still be available. Are you using cookies? If so, are you using a different cookie name, domain or path?