Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

RemoteAddr Validation Issue on Chrome of android #113

Open
alenoosh opened this issue Aug 27, 2018 · 2 comments
Open

RemoteAddr Validation Issue on Chrome of android #113

alenoosh opened this issue Aug 27, 2018 · 2 comments

Comments

@alenoosh
Copy link

Hello

I'm using zend framework 3 and I've added the following validators in my session configuration :

   'session_manager' => [
        'validators' => [
            Zend\Session\Validator\RemoteAddr::class,
            Zend\Session\Validator\HttpUserAgent::class,
        ],
    ],

I have a strange issue in android cellphones/tablets, I get invalid session. I debugged the Zend Session code and I noticed that the 'RemoteAddr' validator returns false on 'isValid' method and it detects different ips on the following line of code :

return ($this->getIpAddress() === $this->getData());

I don't understand why the '$this->getIpAddress()' is different from '$this->getData()'. While I don't have this issue in my laptop, and also firefox browser on android does not have this issue.

Do you have any clue what is the problem and how can I solve this to work on android chrome ?

@Mecanik
Copy link

Mecanik commented Oct 23, 2019

When you use RemoteAddr and HttpUserAgent in combination with Zend 3 you get this result. This is a bug and I`m sure it will be fixed, for now just comment //Zend\Session\Validator\HttpUserAgent::class and no more error.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-session; a new issue has been opened at laminas/laminas-session#4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants