× Joomla Facebook Connect support forum

Topic-icon Auto Logout

Active Subscriptions:

None
11 years 8 months ago #26248 by fb_100000532508192
Hi is it possible to automatically logout a user after they have logged in. This would be using a copied sclogin module. the purpose of this for quick turnaround of registrations i.e. an public event.

but we want people that use the site generally to login and then only log out of our site.

i hope i have explained myself clearly. in effect have logout of site and facebook enabled at the same time depending on page etc...

Many thanks in advanced
The topic has been locked.
Support Specialist
11 years 8 months ago #26270 by alzander
Replied by alzander on topic Auto Logout
Phil,
We had a very similar question about a month ago. The thread is below, and I think the solution there should work for you.. basically, you need to redirect the user after registration (or whatever) to a specific page with some Javascript that will log the user out. A Thank You page or something is a good example:
www.sourcecoast.com/forums/jfbconnect/jf...ore-login?p=1#p25713

Post back here if that is, or isn't, what your'e looking for. Hopefully, that will hit the mark though.

Should you need more assistance though, just let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26577 by fb_100000532508192
Replied by fb_100000532508192 on topic Auto Logout
Almost what i'm looking for.

i want to keep auto-login enabled and logout jomla only enabled. Then either logout automatically by using a copied module or a button that will log out both facebook and joomla.

thanks in advance
The topic has been locked.
Support Specialist
11 years 7 months ago #26598 by alzander
Replied by alzander on topic Auto Logout
We don't have a way to currently achieve that. The SCLogin module doesn't override the settings of the main component. That may be something we implement in the future, but for now, there's no method for the component's settings to be overridden on a per-page or per-module basis.

If you wanted to create your own logout button, you could *try* the following code:
<a href="#" onclick="jfbc.login.logout_facebook=true;jfbc.login.logout_button_click();">Logout!</a>
I think that will work. In the href, you can put an image or any other text, of course.

Let us know how that goes, and good luck!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #26603 by fb_100000532508192
Replied by fb_100000532508192 on topic Auto Logout
perfect that works!!

Thank you very much alex!
The topic has been locked.
Support Specialist
11 years 7 months ago #26630 by alzander
Replied by alzander on topic Auto Logout
Awesome! We'll keep that in mind in the future as we'll probably allow more overrides in the SCLogin module at some point... :D

Thanks for the feedback, and good luck!
Alex
The topic has been locked.