Helpful Information
 
 
Category: IIS
Unable to capture variables passed through the URL

I'm trying to pass variables through the url (example: lang.asp?ln=en). The page doesn't see the ln variable and it's contents and gives me an error. I've tried passing variables in the url using php and jsp on the same server. I'm thinking there's a setting in IIS that I am overlooking, not sure. Until I figure out how to get the variables in the url to work, my sites won't work.

I know I am coding my pages right. My hosted sites on other networks pass the variable from the url to the page just fine and the pages react to the variables the way I want them to.

Thanks for any help.

There is no setting I'm aware of that will block the querystring. I don't use php or jsp on windows, there may be some requirement or setting necessary in their setups.

BINGO! Figured it out. In c:\windows\php.ini, change session.use_trans_sid = 0 to session.use_trans_sid = 1. Now the variables int he url work in php, and now they work for me with my asp files too.

Sometimes all it takes is a little outside mind jogging. Thanks Doug.

How would that setting relate to the situation you originally described? And how would changing anything in the PHP configuration affect ASP?










privacy (GDPR)