close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Missing SESSION_START()

Thread began 10/09/2009 1:38 am by Cologne | Last modified 10/09/2009 12:35 pm by Jason Byrnes | 2351 views | 3 replies |

Cologne

Missing SESSION_START()

Hello,

is it possible that session_start() is mssing, when I clear sessions befor page loads? thats DANGEROUS.

<?php 
if ("" == ""){
// WA_ClearSession
$clearAll = FALSE;
$clearThese = explode(",","ID,nickname,name,level,email");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>



Can you please FIX that :-)

Denis

Sign in to reply to this post

Jason ByrnesWebAssist

I have logged this in our bugbase.

in the mean time you can add:

php:
<?php if(!session_id()) session_start(); ?>




before the clear session variable server behavior.

Sign in to reply to this post

Cologne

Thanks.

how can I destroy the session after 20 minutes? I want the member automatic be logged out if there is no action during 20 minutes.

how does that work?

I think I need a function on every page to check, the time, when the session was created/updated. if its under 20 minutes, update time. if over 20 minutes, destroy session.

does that work with the SA rules?

Denis

Sign in to reply to this post

Jason ByrnesWebAssist

No, you set that in the PHP.ini file using session.gc_maxlifetime. See the following for more information on setting the session timeout length in PHP:
12812.htm

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