Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Been searching for an answer to this but read some conflicting reports.

I have a asp.net website with forms authentication setup and I'm adding some php pages to a subfolder within the site. I want these pages to follow the same authentication as the rest of the site, ie be bounced to my asp.net login form if not logged in.

Currently if I access a file http://localhost/test/test.php it is serving it even if I'm not logged in. However if I just browse to the folder http://localhost/test/ it does bounce me to login page. Guess I need to force these PHP pages through the asp pipeline but is this possible in classic mode / iis6?

share|improve this question
Are you saying that using http://localhost/test/ in the browser auto redirects you? – itsols yesterday
I also don't think PHP can use a session that is set within ASP. Why don't you continue to use ASP instead of PHP for this task? – itsols yesterday
thats correct http://localhost/test/ is redirecting me to my login page. The reason its PHP is I'm integrating a wordpress blog – Omiron yesterday
I think you're better off writing the log-in state into a record in the DB and check it in the PHP script as well. But this is not fool-proof as it relies on the user logging out as well. – itsols yesterday

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.