PEAK XOOPS - Re: Auto Login for 2.2 and session id in englishin japanese

Re: Auto Login for 2.2 and session id

List posts in the topic

question Re: Auto Login for 2.2 and session id

msg# 1.1.1.1.1.1
depth:
5
Previous post - Next post | Parent - No child | Posted on 2006/4/9 23:03
GIJOE  ÀèǤ·³Áâ   Posts: 4110
OK. I've just found.

The session_id is added by redirect_header() in the core.
Thus, I have to modify the hack like this:

line 590 in include/autologin_main.php
	    // RMV-NOTIFY
	    // Perform some maintenance of notification records
	    $notification_handler =& xoops_gethandler('notification');
	    $notification_handler->doLoginMaintenance($user->getVar('uid'));

		$_COOKIE[ session_name() ] = session_id() ;
	    redirect_header($url, 1, sprintf(_US_LOGGINGU, $user->getVar('uname')));
	} else {

The archive will be updated tomorrow.

Thank you for reporting, jseymour!
Votes:10 Average:6.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!