Print Page | Close Window

Logged in User Stays Logged In

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20525
Printed Date: 01 April 2026 at 11:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Logged in User Stays Logged In
Posted By: paix120
Subject: Logged in User Stays Logged In
Date 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.
 
 



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: paix120
Date 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


Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: paix120
Date 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.


Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dpyers
Date 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.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Russell123
Date Posted: 25 May 2010 at 9:26am
Originally posted by WebWiz-Bruce 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?


-------------
http://www.actualtests.com/certs/A-plus-training-certification.htm" rel="nofollow - a+ certification practice test


Posted By: WebWiz-Bruce
Date Posted: 25 May 2010 at 11:33am
This topic is over 4 years old from 2006 and no-longer relevant as version 8 was superseded by version 9 over 3 years ago.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net