joomla! 1.5 auto redirect to home page instead of login page when the session expires - joomla1.5

In Joomla! 1.5, when the user's session has expired the application should redirect to the home page.
Currently, it's redirected to the login page.
How to do this? Which file do I have to modify?
Thanks!

Related

Facebook Recent Logins breaks OAuth flow

I'm having troubles working with what appears to be an error with Facebook's OAuth server-side flow. When logging into Facebook using "Recent Logins", Facebook does not redirect back to my calling application. Instead it goes directly to the Facebook home page.
If I login to Facebook using the email/password fields at the top right of the screen, then the redirection becomes successful.
Is there some way to force facebook to send users to it's main login page and not this main page that displays the recent logins when they are not already logged into Facebook?
This also occurs using Facebook's very own OAuth for developers. So I know it can't be just me.
Login to Facebook.com
Logout
Visit facebook's apps page
Click your profile pic and enter your password (rather than using the blue banner to login).
Facebook redirects you to their home page rather than this page
What would be great is a parameter to this page that would allow me to force a particular facebook login dialog as a workaround.

Single sign on with OpenIdConnect in .net core - redirect URL

I am using SSO against Azure AD in my .net core application. Used OpenIdConnect for authentication.
Currently after login it is redirected the home page. But I want to redirect it to the specific controller which user clicks before login.
If mysite.com is my site and if user clicks on mysite.com/help it should be redirected to help page after sso.
If user clicks on mysite.com/forum, after sso it should be redirected to forum page.
How to achieve this?

How to stop automatic facebook login in my website?

i have a site which has a facebook login button. if i am logged in facebook on same browser, and clicks on website login button, it redirects me to the profile page without asking option to login via facebook or via form. i will add google plus button also in future.
so please tell me how to stop this automatic login in facebook.
It's all about Browser Cookies and Cache.. The session already kept in your browser cache. so that's why .. It automatically redirects you to facebook. You need to clear your browser cache. to solve this issue...

Facebook logout problem

I am using Facebook Login button in my website.
Visitors can log in via facebook successfully.
FB login is working integrated with my own membership.
I mean I keep logs of FB logins.
The problem is here;
User may log out from my site by clicking Logout button (my own logout button)
When they press the logout button, i redirect them to logout.php and run the following JS;
"FB.logout()"
The JS code causes that user logout from their facebook account not my site.
If they login facebook on an another tab, and refresh my page they will log in again.
How can i end a session that user open via Facebook on my site?
You also have to clear facebook sessions from your machine with below code:
using Facebook;
Thread.Sleep(1000); // delay is required to get it work
Facebook.Session.ConnectSession cn = new Facebook.Session.ConnectSession(ConfigurationManager.AppSettings["APIKey"].ToString(), ConfigurationManager.AppSettings["Secret"].ToString());
cn.Logout();

page refresh problem

In my GWT application,after the user login, user is forwarded to some page. From that page when the user refreshs the page, it going back to the login page. Login page is the first page is shown to the user. How can I stop the page going back to the login page? Iam using gwt-ext framework also in my application.
That is the normal behavior of a single page web application. You can prevent this by using GWT's History management.
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html
Just add a history token (e.g. #main) to the URL after login. Then register a change handler to load the correct content, if this very token is present.