PDA

View Full Version : ASP, Ldap, Session Variables


rynox
02-10-2005, 02:50 PM
I need some advice. We are rebuilding our Intranet site and we want to integrate our logins with our Novell eDirectory (NDS). I already have a PHP script that integrates these logins, but the problem is that we are going to proceed with our development under ASP (even though our server is also running PHP).

So, can I do LDAP with ASP?

Or, better yet... can I pass session variables to an ASP page from a PHP page? For example, I have a form (something.asp) and it submits to some php page (ndsauth.php) which does ldap authentication and then passes a session variable back to another asp page (somethingelse.asp).

I think we would prefer the second option, since we have a script that's already working with Novell.

Ryan

rynox
02-10-2005, 03:03 PM
Sorry, answered my own question.

I am able to submit the form data to a PHP script that will set an http cookie...
setcookie('test','test value');
Redirect to an ASP script and retrieve this cookie:
Request.Cookies("test")