<p>By default, Craft requires that a browser has a user agent string and IP address for a valid authenticated session, and once that session starts, the user agent string must remain the same for the remainder of the session.</p>

<p>It sounds like whatever browsers are being used on the mobile devices aren't providing this.</p>

<p>You can alter this behavior with these config settings:</p>

<p><a href="https://docs.craftcms.com/v3/config/config-settings.html#requireuseragentandipforsession" rel="nofollow noreferrer">https://docs.craftcms.com/v3/config/config-settings.html#requireuseragentandipforsession</a></p>

<p><a href="https://docs.craftcms.com/v3/config/config-settings.html#requirematchinguseragentforsession" rel="nofollow noreferrer">https://docs.craftcms.com/v3/config/config-settings.html#requirematchinguseragentforsession</a></p>

CC BY-SA 4.0
2019-05-10T18:10:19.987Z
2019-05-10T18:10:19.987Z
Brad Bell
<p>I have a site which is online now.</p>

<p>This site has a set password, log in, etc. features for my users. My users are able to sign in or set password (all user operations) on any browser but when they try to set the password or login (all user operations) on mobile, the process is never ended and finally crashed.</p>

CC BY-SA 4.0
2019-05-09T13:38:16.577Z
Can you please check the logs ?
inrsaurabh
CC BY-SA 4.0
2019-05-10T08:21:47.207Z
@inrsaurabh i see "Request didn’t meet the user agent and IP requirement for maintaining a user session." in the logs.
Berk Can Demir
CC BY-SA 4.0
2019-06-09T12:52:44.310Z
Is your problem solved?
inrsaurabh
<craft3><users>
Craft 3 - login problem on mobile
# Craft 3 - login problem on mobile

(Asked by: username_0 on 2019-05-09)

I have a site which is online now.

This site has a set password, log in, etc. features for my users. My users are able to sign in or set password (all user operations) on any browser but when they try to set the password or login (all user operations) on mobile, the process is never ended and finally crashed.

**Tags:** craft3, users
> **Comments:**
> **username_1**: Can you please check the logs ?  
> **username_0**: @inrsaurabh i see "Request didn’t meet the user agent and IP requirement for maintaining a user session." in the logs.  
> **username_1**: Is your problem solved?  

---

## 1 answers

### Answer by username_2 on 2019-05-10. Score: 3

By default, Craft requires that a browser has a user agent string and IP address for a valid authenticated session, and once that session starts, the user agent string must remain the same for the remainder of the session.

It sounds like whatever browsers are being used on the mobile devices aren't providing this.

You can alter this behavior with these config settings:

<https://docs.craftcms.com/v3/config/config-settings.html#requireuseragentandipforsession>

<https://docs.craftcms.com/v3/config/config-settings.html#requirematchinguseragentforsession>


---

