Community discussions

MikroTik App
 
unietis
just joined
Topic Author
Posts: 7
Joined: Mon May 13, 2013 8:44 pm

Hotspot MAC cookie timeout

Wed May 07, 2014 9:56 am

Hi everybody,

I tried to find some information on for how long you can leave the MAC cookie for user (in the User Profile "MAC cookie timeout"). From the documentation I could not really find any information on that. Only that the default value is 3d 00:00:00

While trying to add MAC cookie timeout of 30 days (30d 00:00:00) - it accepts the value, but when new user is logged in - on hotspot cookies i can see that for the newly logged-in user the MAC cookie timer has started on the default value again. (3d 00:00:00 and going down).
I'm using v6.10 - is it OS problem or is the "MAC cookie timeout" max value the same as the default one (only 3d 00:00:00)?

Thanks.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot MAC cookie timeout

Mon May 12, 2014 1:16 am

Are you sure you not confusing MAC cookie timeout with HTTP cookie timeout?

Both have 3d for defaults
 
unietis
just joined
Topic Author
Posts: 7
Joined: Mon May 13, 2013 8:44 pm

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 10:15 am

Exactly, both have default of 3 days. My question basically is - can you change these values to for example 10 days?
When i do that, for cookies it always stays on the default 3 day value.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 4:04 pm

I don't use cookie logins, but I know where to change the value.
/ip hotspot profile
set X http-cookie-lifetime=10d
Change X to the line number or name of the hotspot profile.

If they don't work, insure you use NTP client to set the correct time in the router.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 5:37 pm

The maximum value is 3d!!! ;)
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 6:13 pm

The maximum value is 3d!!! ;)
Was this a test or in the documentation?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 6:31 pm

test, try yourself
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 6:45 pm

I did. I set the http-cookie-lifetime=10d, and it set the http-cookie-lifetime=1w3d. Here is the output from the router:
[admin@test] /ip hotspot cookie> pri
Flags: M - mac-cookie
# USER DOMAIN MAC-ADDRESS EXPIRES-IN
0 admin 00:16:76:04:CC:1E 1w2d23h58m6s
Here is the output from Chrome's cookies:
Name: loginID
Content: 2166841169
Domain: 192.168.1.1
Path: /login
Send for: Any kind of connection
Accessible to script: Yes
Created: Tuesday, June 3, 2014 10:39:30 AM
Expires: Friday, June 13, 2014 10:39:30 AM
Maybe you should test again! :wink:
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 7:29 pm

ROS version, please?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Hotspot MAC cookie timeout

Tue Jun 03, 2014 8:19 pm

ROS6.9 on a RB433AH.

Going surfing now, Be back in an hour or so. :D

Who is online

Users browsing this forum: k6ccc and 15 guests