Jump to content

Can i include login from aspx site into php web page?


Recommended Posts

I have 2 websites, a companies main website written in PHP and a web application they have purchased written in aspx


(main site)



(web app)



The client wants people to be able to login from their main website which then redirect to the webapp (which will be styled like their branding) without the customer realising they have left the main site.


I thought i may be able to achieve this with a simple include from a page within the main site such as;

// www.example.com/software


This pulls in the login page fine, however when you try to login it does not redirect, it gives a 404 error as it trys to open this URL



Is there a way of pulling in the necessary html from the aspx site to provide a login box in my clients main site but then have it redirect to the correct aspx page (on the aspx site)?


I have thought about using an iframe, but that wont redirect to the webapp upon login, but just keep everything withing the iframe


thanks for any advice...

Link to comment
Share on other sites

You have a couple of problems with what you are trying to do here.


1) You are creating a gaping hole for malicious users to jump straight into.


2) You are trying to log someone in on a different server. This means that even if you get them to log in, how are you going to verify on the rest of the pages that they are indeed logged in?


Your best bet is to recreate the login on the PHP side and connect to the database the ASP site is using via PHP on the backend. You shouldn't be sending any type of login information from a browser on Server X through their browser to Server Y.

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.