PEAK XOOPS - Incorrect use of $xoopsConfig['use_mysession']? in englishin japanese

Incorrect use of $xoopsConfig['use_mysession']?

List posts in the topic

question Incorrect use of $xoopsConfig['use_mysession']?

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2005/11/26 4:09
Dave_L  Lance Corporal From: Virginia, USA  Posts: 35
[Protector 2.52]
modules/protector/include/preferences.inc.php

if (!empty($use_mysession) && $xoopsConfig['use_mysession'] == 0 && $session_name != '') {
    setcookie($session_name, session_id(), time()+(60*intval($session_expire)), '/',  '', 0);
}

Shouldn't that be:

if (!empty($use_mysession) && $xoopsConfig['use_mysession'] && $session_name != '') {
    setcookie($session_name, session_id(), time()+(60*intval($session_expire)), '/',  '', 0);
}

I.e., shouldn't the cookie be set if "Use custom session" is "Yes", rather than "No"?

Also, where are the variables $use_mysession, $session_name and $session_expire defined?
Votes:1 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!