Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6728 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

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"

Posted

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

Posted

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 */

This topic is 6728 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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