The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Automaticly log out

2 posters

Go down

Automaticly log out Empty Automaticly log out

Post by smerf95 September 15th 2012, 1:08 pm

Hi is there any way that i can do that ..
What i want is when a member isn't on my forum after 10min he will be automaticly logged out .
is there any way to do that ? Please help and thank you ! Very Happy
Hope there is such an option because I realy need it ...
avatar
smerf95
Forumember

Male Posts : 208
Reputation : 3
Language : Polish

http://sorta.forumpl.net

Back to top Go down

Automaticly log out Empty Re: Automaticly log out

Post by Jophy September 15th 2012, 1:14 pm

Hello,

There's an option:
Admin Panel > Users & Groups > User Options:
Time in minutes before a member is considered "Offline" : Set in the limit > Save

Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Automaticly log out Empty Re: Automaticly log out

Post by smerf95 September 15th 2012, 3:55 pm

Jophy wrote:Hello,

There's an option:
Admin Panel > Users & Groups > User Options:
Time in minutes before a member is considered "Offline" : Set in the limit > Save


Ok so that means that the user will be offline after the time I set up?
avatar
smerf95
Forumember

Male Posts : 208
Reputation : 3
Language : Polish

http://sorta.forumpl.net

Back to top Go down

Automaticly log out Empty Re: Automaticly log out

Post by Jophy September 15th 2012, 3:57 pm

Yes. However, that doesn't mean he/she will be fully logged out, after the time set has passed, his/her name will disappear from the online list.
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Automaticly log out Empty Re: Automaticly log out

Post by smerf95 September 16th 2012, 1:28 am

Rideem3 wrote:You can use JavaScript to fully log out. However I recommend that you use the Admin Panel method.

Code:
var minutes = "30"; //30 minutes of inactivity
$(function() {
if (document.getElementById('logout'))
setTimeout(function() {
$.get(document.getElementById('logout').href);
}, minutes * 60000);
});

Now thats what I need ... Can u just tell me where do I put the time after some one is bein logged out ?
is it the 30 or 60000 ? Thank you v. much ! Very Happy
avatar
smerf95
Forumember

Male Posts : 208
Reputation : 3
Language : Polish

http://sorta.forumpl.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum