close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

timeout of logged in users

Thread began 9/07/2010 7:07 am by mr hankey | Last modified 9/20/2010 2:00 pm by Cologne | 1196 views | 6 replies |

mr hankey

timeout of logged in users

hi,

is there a defualt time before security assist will log the user out and if so can this be changed?

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

session timeout is controlled by the php.ini file.


see the following thread on webmasterworld.com for details:
12814.htm

Sign in to reply to this post

mr hankey

thanks jason i never knew that. will look at modifying.

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Cologne

i did it with a little function. i create a session from a timestamp. then i create a small funtion that creates a futur timestamp. and checks the timestamps, as long as the first is still smaller than the other all is fine and then sets the session to the actual timestamp. you can do this in sa rules, too. session logintime > futurtime goto logout. Denis

Sign in to reply to this post

mr hankey

thansk for the info. i may call upon a more detail explaination on that in future. but i will modify what jason has described for now to resolve the issue.

many thanks

Sign in to reply to this post

Cologne

This is my page between login und welcome page...

<?php require_once( "/WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php $logouttime = mktime(date("H"),date("i")+15,date("s"),date("m"),date("d"),date("Y")); ?>
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["logouttime"] = "".$logouttime ."";
}
?>
<?php
if (!WA_Auth_RulePasses("member")){
WA_Auth_RestrictAccess("../noaccess.php");
}
?>
<?php
if(WA_Auth_RulePasses("member")){
$WA_Redirect_URL = "willkommen.php";
$WA_Redirect_KeepQS = false;
if ($WA_Redirect_URL != "") {
if ($WA_Redirect_KeepQS && $WA_Redirect_URL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "") {
$WA_Redirect_URL .= ((strpos($WA_Redirect_URL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_Redirect_URL);
}
}
?>



this is my function that I call on evers page.

<?php // Verlängerung der Logout Time
function MoreLoginTime(){
if(mktime() <= $_SESSION['logouttime']) {
$_SESSION['logouttime'] = mktime(date("H"),date("i")+15,date("s"),date("m"),date("d"),date("Y"));
}
}
?>
<?php MoreLoginTime(); ?>



and the rule should be. mktime(); >= $_SESSION['logouttime']

this works vor me.
cheers

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...