Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: No one can login after changing Use custom session to yes
by benCorpo on 2008/3/19 13:52:50

I have the solution.

This line (line #262) in include/common.php that was emptying the user info:
// Remove expired session for xoopsUserId
if ( $xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '' && !isset($_COOKIE[$xoopsConfig['session_name']]) && !e
mpty($_SESSION['xoopsUserId']) ) {
unset( $_SESSION['xoopsUserId'] );
}

For some reason, right after the login, I suspect the cookie to contain the wrong info, thus preventing anyone from login anymore.

I commented out the line #263 (the unset()) and everything is back to normal!

Hope this is useful.
Ben
Re: No one can login after changing Use custom session to yes
by somekool on 2008/3/15 16:56:46

my use_mysession config is already set to 0

but I still can't login.

what else could it be?
Re: No one can login after changing Use custom session to yes
by Arowana on 2008/3/8 19:49:12

Quote:
I know this setting is at fault because I went into the database and changed it back and users can log back on.



Ok here you go:

Login to your database and under _config table click browse
show 500 records from 0 and you will see "use_mysession" edit that and the "conf_value" should be set to "0"

Click Go and then try to login to your site.

Hope this helps
Re: No one can login after changing Use custom session to yes
by armitage on 2008/3/6 21:05:54

I had to strain the brainbox pretty hard to come up with that one. Most of my XOOPS installs have been on servers in my own time zone, so it wasn't a problem for me, either, until it was.

Only makes sense when you consider a session has a time limit, and if it ends before it begins (so to speak) it could surely cause problems.
Re: No one can login after changing Use custom session to yes
by Anonymous on 2008/3/6 20:29:17

Quote:
armitage wrote:

IINM, for custom_session to work correctly, you must also pay attention to your servers' time zone. Admin > Preferences > General Settings > Server Timezone and Default Timezone must be set to match the servers' location.


I have to confess to not having thought of that one - good advice

I'm one of those who hasn't had the problem; my server's timezone and my personal timezone are the same, so maybe there's something in it. Thank you.

Who's Online

183 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits