OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: nazimnc on January 16, 2018, 01:47:56 pm

Title: [SOLVED] guest portal sessions are lost on reboot
Post by: nazimnc on January 16, 2018, 01:47:56 pm
we have issue with guest portal sessions:

when we restart service or reboot opnsense server all the registered sessions are lost. In reaction all guests had to put username/password vouchers again.


Is there a way to keep sessions saved all the time until session expired as per voucher validity time.
Title: Re: guest portal sessions are lost on reboot
Post by: franco on January 16, 2018, 05:48:15 pm
Hi there,

It should be like that. Which version are you using?


Cheers,
Franco
Title: Re: guest portal sessions are lost on reboot
Post by: nazimnc on January 16, 2018, 08:08:57 pm
I am using 17.7.11 (amd64/OpenSSL) updated but still on reboot all sessions are wiped out and all guests need to put vouchers again
Title: Re: guest portal sessions are lost on reboot
Post by: franco on January 17, 2018, 10:21:04 pm
Are you using the /var MFS option under System: Settings: Misc?

I have to ask... anybody else seeing this problem?


Cheers,
Franco
Title: Re: guest portal sessions are lost on reboot
Post by: nazimnc on January 18, 2018, 06:01:00 am
We did use /var first few experiments but now we are not using /var anymore.


now being more clear -> have tested couple of devices along with long timings and found out sessions are wiped out after at least 12 hours even we don't restart service/server.

is there any check/setting to extend session expiry upto 30 days as per voucher validity is 30 days or more so even guest comes back after days system shouldn't ask him to enter voucher again
Title: Re: guest portal sessions are lost on reboot
Post by: nazimnc on January 19, 2018, 01:22:14 am
found out that it was because of DHCP Lease time expired after 12 hours instead. so we changed to 30days now and problem solved!!!

Title: Re: guest portal sessions are lost on reboot
Post by: franco on January 19, 2018, 09:18:33 am
Sounds great, thanks for the follow-up. :)


Cheers,
Franco