August 31, 200619 yr Hi All, I am using PHP and FX.php, I am working in a webpage that requires a login in order to read the article and it works fine, so now I do have a problem because the page was designed to do not have a logout option, I am wonder if has a way the page can have an automatic logout, if yes, how do I do that? Any help will be appreciated. Thank you, :) Edited August 31, 200619 yr by Guest
August 31, 200619 yr I don't know how to do it in PHP, but in lasso - there is a "Session" that is maintained for as long as you want - controlled by the lasso manager with FM Server - i don't actually log people out - but if they tarry too long, when they click to do a find or other process, they get a "you have been signed out" message. so - look for "sessions"
August 31, 200619 yr blow the session away (or cookie) after they leave. look for $_SESSION or $_COOKIE
August 31, 200619 yr Maybe I'm misunderstanding, but to log a page out automatically (i.e. without user interaction), insert a tag in the HTML: This will (in this case) load a new page after 300 seconds; when the page loads, you can do as the others suggest to clear the session. This will log someone out after some inactivity (which I see from second reading isn't really what you asked...)
September 1, 200619 yr That is a good idea (refresh) but then a person who has an active $_SESSION will still be logged in will they not? what I do on the last page for our shopping cart is reset the $_COOKIE as they submit their last order. This logs them out and they have to log back in to create another order. Also in Session management - set the expires to a lower number for a more secure solution. ie) setcookie("TestCookie", $value, time()+60*10); /* expire in 10 minutes */
Create an account or sign in to comment