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

RemoteAddr Validation Issue on Chrome of android  #113

@alenoosh

Description

@alenoosh

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions