close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Session expiry

Thread began 12/14/2015 10:28 am by MagsW | Last modified 12/15/2015 1:12 pm by Ray Borduin | 248 views | 2 replies |

MagsW

Session expiry

I have a custom build of a SecurityAssist site for a client's intranet. They have integrated it into their own systems (ActiveDirectory) and all is working fine apart from one thing - I think their php.ini settings are set to keep users logged in indefinitely, however the session values I have used extensively throughout the site to display relevant content are expiring after an hour. This results in the user remaining logged in, but if they have been inactive for an hour and then go back to it and refresh, all they can see is a lot of empty boxes! Normally of course the user would be logged out automatically when these sessions expire and so they wouldn't see this happening.

I've read the forums and Googled but everything I've found so far points to it being something in their php.ini file. I wondered though if there is anything in the Webassist files that sets a session expiry value? I did a global site search for "3600" seconds and found this in the kfm/j/all.php file:

header('Expires: '.gmdate("D, d M Y H:i:s", time() + 3600*24*365).' GMT');

Also in a few other places but I don't know what they control. I don't want to change anything without knowing whether it will mess anything up!

Sign in to reply to this post

Ray BorduinWebAssist

You could try to update the php.ini settings that control session variables:

session.cookie_lifetime
session.gc_maxlifetime

You could try overwriting their values on the page itself, but it would probably have to appear on every page:

php:
<?php

ini_set
('session.cookie_maxlifetime', (3600*24*365));
ini_set('session.gc_maxlifetime', (3600*24*365));
?>
Sign in to reply to this post

MagsW

Thanks Ray, I copied that into the shared header file, although am I right that this code sets the sessions to expire after one hour (3600 seconds)? I changed the figure to 10800 to see what would happen and so far so good. I think the client may also have updated their php.ini file though, so not sure which bit of code fixed it!

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