PHP and ASP
Posted: Thu Jun 26, 2003 11:29 pm
I have a site that primarily uses asp pages and would like to incorporate the Vbulletin php portals into my website that requires logging in to view it... Since my whole login system is ASP I would like to be able use the following ASP code or equivalent PHP to check for athorization.
here is the the code that is used on my asp pages:
<%Response.Buffer = true
if session("memberlogged") = false then
Response.Redirect("default.asp")
end if
%>
What the above does is check to see if memberlogged is false and if not set it redirects back to login page(default.asp) this code is at the top of all my pages that require logging in.
Is there a way to rewrite this in PHP and be able to use the same "memberlogged" variable that was set within ASP?
Or some way I can incorporate asp within PHP
here is the the code that is used on my asp pages:
<%Response.Buffer = true
if session("memberlogged") = false then
Response.Redirect("default.asp")
end if
%>
What the above does is check to see if memberlogged is false and if not set it redirects back to login page(default.asp) this code is at the top of all my pages that require logging in.
Is there a way to rewrite this in PHP and be able to use the same "memberlogged" variable that was set within ASP?
Or some way I can incorporate asp within PHP