close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Session Time

Thread began 10/09/2009 9:56 am by rogersds267040 | Last modified 10/13/2009 8:06 am by Ray Borduin | 3501 views | 4 replies |

rogersds267040

Session Time

Need some help. How do I set the session to time, lets say in 5 minutes and the redirect to another page after session times out?

Sign in to reply to this post

Jason ByrnesWebAssist

You modify the session time out in the php.ini file. See the following for more information:
12812.htm


You could set the session.gc_maxlifetime to 5 and set the page to reload every 6 minutes;
<META HTTP-EQUIV="refresh" CONTENT="6">

Sign in to reply to this post

rogersds267040

Session Time Out

I don't have access to the php.ini file.

I tried adding the following to the Helper_PHP.php page but it doesn't work. And Im trying to get it to redirect to the logout page.

<?php
ini_set('session.cookie_lifetime', '60');
ini_set('session.gc_maxlifetime', '60');
?>

Sign in to reply to this post

Office Guy-172461

You might find something that will help here:
How to change PHP parameters when you don't have access to php.ini
change-php-parameters.html

Sign in to reply to this post

Ray BorduinWebAssist

You can't really redirect to another page when the session times out literally, but if you know how long the session will last without timing out, then you can redirect to another page after that amount of time on a single page, which is essentially the same thing.

<body onLoad="setTimout('document.locaiton.href=\'redirectpage.php\',1000*60*5')" >

This would redirect you to a page after 5 minutes. If your session were also set to five minutes it would essentially redirect you after your session has timed out.

Sign in to reply to this post
Did this help? Tips are appreciated...

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