Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

help in how to configure an automatic logout

Featured Replies

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 by Guest

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"

blow the session away (or cookie) after they leave.

look for $_SESSION

or

$_COOKIE

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...)

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.