When I login the website with the username and the password - I want my credential to be store in the cache memory of the browser
and If I close the browser without logout
then when I re-open the website again, it should be auto login.
- Make sure you have already disabled the following items from “Tools” → “Advanced Settings”:
- Session timeout period (minutes)
- Session keep alive interval (seconds)
- Make sure you have already disabled the following setting from “Security” → “Advanced” → “User Login Options”:
- Login status timeout (minutes)
- Make sure when users login, they enable “Remember me” option from Login form.
Thanks for your reply.
- Make sure when users login, they enable “Remember me” option from Login form.
I want this option to be auto selected and the client should not get the option for this.And when the client login to another computer then the previous computer login should be automatically logout.
Bishu wrote:
I want this option to be auto selectedJust put this code in “Startup Script” under “Client Scripts” → “Other” → “Login Page”, and then regenerate at least login.php file again:$(document).ready(function() {
$(‘#rememberme’).prop(‘checked’, true);
});
When successfully login to the website all the previous login to another computer should be logout.Example :
My client login on the “A†computer
and he try to login again on the another “B†computer
If the client successfully login to the “B†computer then the client should automatically logout from the A Computer
Enable “Disallow concurrent login” from “Security” → “Advanced” → “User Login Options”, and then regenerate ALL the script files again.
It blocks the concurrent login only.but I want to allow to login if the client put the correct username and password
and it should logout automatically from all the login computer except the current login computer.
Currently, there is no such built-in feature. However, you may customize the template file, see the “validateUser” function in phpfn.php template file.For more info about how to customize the template file, please read “Customizing Template”
mobhar wrote:
Just put this code in “Startup Script” under “Client Scripts”
→ “Other” → “Login Page”, and then regenerate at least
login.php file again:$(document).ready(function() {
$(‘#rememberme’).prop(‘checked’, true);
});I want this function “remember me” to be activated for my project automatically or by default.
but i don’t want to display this option in my login page.
This option should be activated without selecting the “remember be”
You may simply enable “Remember me (Auto-login)” option from “Security” → “Login Option” of your PHPMaker project, and then re-generate ALL the script files again.
Thanks for your reply and also sorry for my bad english.If I enable the “Remember Me” option it is working fine. my client can click on the remember me and they can login.
but I do not want to show this “Remember Me” option in my login page.
and if any of my client login my website then the site should login with the “Remember me” option (Without selecting by the client)that means all the client should login with the “Remember me” option but the option should not display in the login page.
You can hide the element using CSS,
#rememberme {
display: none;
}Then bind click event on submit button,
$(‘#btnsubmit’).click(function(){
$(‘#rememberme’).prop(‘checked’, true);
});
sangnandar wrote:
You can hide the element using CSS,
#rememberme {
display: none;
}I have put this code at HTML->Styles->User
but the Rememberme Option is still showing in the Login Page.Then bind click event on submit button,
$(‘#btnsubmit’).click(function(){
$(‘#rememberme’).prop(‘checked’, true);
});
should i put this code at Client Script or Startup Script.
Put it in Startup Script.
Now I have upgraded my project to PHPMaker 2020.0.16
Setting done under Tools → Advance Settings
Allow login by session variables = checked
session timeout period (minutes) = 0
session keep alive interval (seconds) = 0
session time out countdown perios (seconds) = 0
Setting done under Security → Advanced → User Login Option
Disallow Concurrent Login = Checked
Maximum concurrent user session count = 2
Login status timeout(minutes) = 0
And I generated all the project again
But the user session expired after few minutes or hours.
do I need to check some other setting or
I have to check here only.
I try again by changing
session time out countdown perios (seconds) = 120
Login status timeout(minutes) = 8000
There is no changes, the session expired after few minutes or hours.