I have a Cakephp 2.3 website with a login system that works absolutely fine when accessed directly via its URL. Navigation between pages that don't required being logged in works, when you submit the login form with correct credentials it takes you to the restricted area, if you click on a link that requires being logged in the system recognizes that and takes you to the login page, etc.
However, when I load that same website from another website (using an iframe), the login system stops working. If you submit the login form, even with the correct credentials, it takes you back to the login page. If you try to access a restricted page, same thing. All this without showing any failed login errors or a "you're trying to access a restricted page" message that it shows when accessing the website without an iframe. The navigation between pages that don't require being logged in does work fine though.
The iframe code is as basic as it gets: <iframe src="https://mywebsite.com/" width="100%" height="700" frameborder="0"></iframe>
I've been dong some research and I can't figure out what's going on. I've tried enabling CORS just in case, because both websites are on different domains (same server), but that didn't make a difference. I don't have any code on the website, as far as I know, that would cause this. Both websites are loaded via https.
Any ideas of what could be going on?
Related
I've a problem (what a coincidence) with my website. My website is build with WordPress. To manage logins and all the stuff I'm using Ultimate Member as plugin and rebuild it. To make my website faster and enable caching, I've installed Cache Enabler.
When I login now into my website, I've the problem that when I switch for example from the account page to an other page, the other page don't knows that the user is already logined and shows an error on the page. When I press no Strg + F5 (which clears the cache and reloads the page), the content is visible.
So is there any way to clear the browsers cache after the login within PHP?
I upload my admin panel on server which is in CodeIgniter. It is not in root, inside of a folder.
While I am executing it ,it is showing only the login page and after submitting login form, following error is generating.
In Mozilla:
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
In Chrome:
The www.browzandbeauty.com.au page isn’t working
www.browzandbeauty.com.au redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
So I'm completely new to working with WordPress and I've had to figure this out by watching YouTube videos and reading articles. I'm not a programmer, all I really understand is HTML & CSS.
So I finished the site on the localhost and I tried to upload it to my hosting service. I created a database and my hosting provider walked me through on creating a subdomain. After that was completed I logged into the admin side of to redirect the URLs. Once I clicked 'save' it logged me out and when I tried to log back in it gave me this error "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." However, the cookies are enabled and the site is live in its subdomain. When I go to test.mydomain.com it works, there's a few things broken but it's showing up. For example, when I click a link it takes me to a localhost url but if i click on the link again it takes me back to the test.mydomain.com url. Plus, when i go to the admin site it's still giving me the error. I have no idea how to go about fixing this. I tried to figure it out but I don't really understand since I'm not familiar with WordPress. Please help!
I'm using facebook's php sdk for a login system on localhost. It was working fine without any problems. But when i try to login now, after clicking the login button it just brings me back to the same page without actually logging me in and changes the url to something like this:
http://localhost/test.php?code=AQA6J5GuQQFCpc9mkOOmuR2...etc
I have double-checked all the code and all the source php sdk files needed. They are all there and haven't been changed from the last time i was able to successfully login. But for some reason it isn't working. Can someone please help me out.
As far as I can see Facebook requires the registration of your web site for the ap, to prevent hackers.
Therefore I don't think it can ever work if your running it on localhost, it would have to run on a domain name.
I recently installed Xampp on my server so I could test out Apache/MySQL/Tomcat. Upon first opening the site, I want the users to go to a login page -- then go to the 'home' page.
I have the login page set up in a separate folder and it works great but I have to open it manually by typing the address in the browser. I have a link on the login page that allows the user to go to the 'home' page (after credentials are verified).
How do I tell Apache to go to this different login page the first time only? Right now it only goes to the 'home' page and I can't figure out how to tell it to go anywhere different.
Any help?