Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Logged in User Stays Logged In
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Logged in User Stays Logged In

 Post Reply Post Reply Page  12>
Author
paix120 View Drop Down
Newbie
Newbie


Joined: 03 July 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote paix120 Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
paix120 View Drop Down
Newbie
Newbie


Joined: 03 July 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote paix120 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
paix120 View Drop Down
Newbie
Newbie


Joined: 03 July 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote paix120 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Russell123 View Drop Down
Newbie
Newbie


Joined: 25 May 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Russell123 Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.