Current time: 11-16-2024, 10:42 AM Hello There, Guest! (LoginRegister)


Post Reply 
Problems on login
Author Message
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #1
Problems on login
Hello,

I have a strange problem, whenever i login, with correct user name and password (log table shows correct login), im always brought back to the login page, it returns 302 Found ! i.e:

POST index.php --->
302 admin/index.php <------
---->GET admin/index
302 index.php <---------
---->GET index.php
200 OK <-----------
This is an older build, RC4 (yes, yes, i will upgrade when i can) , march 2008! all users come from a single ip (gateway of campus lan).

This then works fine later ... for no clear reason :S, before breaking again, how can i debug it, where should i start ?
03-30-2009 08:31 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problems on login
clear cache, check cookies... and update :-)
03-30-2009 08:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #3
RE: Problems on login
(03-30-2009 08:48 PM)joximu Wrote:  clear cache, check cookies... and update :-)

Well, this happens for all users, not just for me ... also we are behind a proxy, but the proxy does not cache the pages, i turned it off for this particular domain (its one domain with many sub domains) , clearing the cache and cookies does not seem to help in a consistent way . ill test it more, but it would be great if there is somewhere where i can start looking for potential problems.
03-31-2009 12:18 AM
Find all posts by this user Quote this message in a reply
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #4
RE: Problems on login
its there Sad, now im getting the same problem without proxy Sad , clearing cache and cookies is not helping !!, this happens when many users try connecting concurrently!
(This post was last modified: 04-02-2009 12:06 AM by uwe.)
04-01-2009 07:09 PM
Find all posts by this user Quote this message in a reply
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #5
RE: Problems on login
Hello!

This happens users connect from a single IP (campus gateway/proxy), in the login table i get entry like:

| 071eExXpfhUszXSO,VI1fKHsH1e | 172.20.2.3 | 1266850312 | 28 | 6 | NULL|

This ip is the internal IP of the proxy server (the proxy is mandatory on all machines by policy)...

Is there a way to get around this issue ? is there a way to make ispcp accept multiple logins per IP and have them stored in seperate records ? i know this would probably not be desired for security reasons maybe, but i would like to avoid this behaviour in my case.
02-23-2010 12:26 AM
Find all posts by this user Quote this message in a reply
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #6
RE: Problems on login
Well, i replaced
PHP Code:
//$query = "REPLACE INTO `login` (`session_id`, `ipaddr`, `lastaccess`, `login_count`, `captcha_count`) VALUES (?,?,UNIX_TIMESTAMP(),?,?)"; 
with
PHP Code:
$query "INSERT INTO `login` (`session_id`, `ipaddr`, `lastaccess`, `login_count`, `captcha_count`) VALUES (?,?,UNIX_TIMESTAMP(),?,?)"

in function check_ipaddr in gui/include/login-functions.php

i assume this will "fix" the issue for me, but allowing users to keep retrying passwords by flushing coockies ? (i have disabled brute force detection anyway) !

If this will have other complications, please advise !
02-23-2010 01:55 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)