| Author |
Topic Search Topic Options
|
paix120
Newbie
Joined: 03 July 2006
Status: Offline
Points: 11
|
Post Options
Thanks(0)
Quote Reply
Topic: Logged in User Stays Logged In Posted: 03 July 2006 at 8:03am |
Hello,
I'm testing the forums on my computer, so there are several users. I think because the option with cookies to keep a user logged in is on, when I use the member API to integrate the log-in, and login as a new user, the previous user is still logged in.
I don't want to set the default to not keep a person logged in, so is there a way to automatically log the user out of the forums on this computer (reset cookies?) when another person logs in on my website?
Does this make any sense? It would only be a problem with multiple users using the forum on the same computer, but it could potentially be an issue.
Thanks.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 03 July 2006 at 3:10pm |
|
When you use the member API you can not login directly to the forum, you must login through your own login system.
|
|
|
 |
paix120
Newbie
Joined: 03 July 2006
Status: Offline
Points: 11
|
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2006 at 8:08am |
Yes, but it adds the person to the forum database so they are technically logged in to it... it even says their username at the top of the forum. Is there an easy way to log them out when someone else logs in on my site on the same computer - like a function I can call?
Thanks
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2006 at 12:00pm |
|
There is a logout button at the top of the forum that will log the user out of the forum.
|
|
|
 |
paix120
Newbie
Joined: 03 July 2006
Status: Offline
Points: 11
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 July 2006 at 9:03pm |
I'm trying to find out if a person is on your forum, navigates away to another site, or whatever, then another person sits down at that same computer and goes to my website to log in, is there a script I can run that will make sure the previous person is logged out of the forum? Whatever cookies are placed on the computer leave the first person logged in (if they selected that option) even if I use the session variables and pass the forum a new username and password.
If it doesn't make any sense, let me know. I'm sure this issue won't come up often, but in my testing, I'm having to physically click logout, and I know most people just navigate away, they don't actually log out.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 July 2006 at 9:50am |
|
Because HTTP is a stateless protocol it is impossible to know if a member is simply reading a post or navigated away from the forum.
Also, ASP files need to be triggered by a user and can't be set to run automatically.
|
|
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 July 2006 at 2:06pm |
Session state is tied to the instance of the browser. Child windows or new browsers started while the original or any of it's children are active also inherit the session state. Most web servers have a default session timeout of 20 minutes of inactivity for a site - regardless of if you are actually on the site at the moment. You can adjust the length of time a session is active by either changing the iis defaults or including session.timeout = xx in your asp code, Where xx is the number of minutes. Set it tor low, and people won't have time to read and reply to posts. You can terminate a session by... - Performing no activity on the site for the length of time required for the session to time out.
- Using session.abandon in your asp code to terminate all the session variables (this is what the logout button does).
- Closing all browser windows and starting a new browser instance.
Edited by dpyers - 06 July 2006 at 2:08pm
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
Russell123
Newbie
Joined: 25 May 2010
Status: Offline
Points: 1
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 May 2010 at 9:26am |
WebWiz-Bruce wrote:
When you use the member API you can not login directly to the forum, you must login through your own login system.
|
Can you please explain it more?
|
 |