meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Clear cookie/session #3017

Open jberanek opened 3 years ago

jberanek commented 3 years ago

Is there a way to force user to re-login after they close the browser (more like auto logout) ? I guess the system saves the session cookie in which I must manually clear the cookie in order to achieve what I want.

Thanks James

Reported by: *anonymous

Original Ticket: mrbs/support-requests/2328

jberanek commented 3 years ago

Set in your config file

$auth["session_php"]["session_expire_time"] = 0;

Original comment by: campbell-m

jberanek commented 3 years ago

I'm afraid, it doesn't work. I have restarted Apache and clear all cache and cookie for a browser but the results are the same.

James

Original comment by: *anonymous

jberanek commented 3 years ago

I've tested it on my system and it works OK. What have you got $auth['session'] set to?

Original comment by: campbell-m

jberanek commented 3 years ago

I don't have this parameter in my config_inc.php file. What value should I set ?

Thanks James

Original comment by: *anonymous

jberanek commented 3 years ago

I have tried to add this line > $auth["session"]="cookie" but the results remains unchanged. Still doesn't work.

James

Original comment by: *anonymous

jberanek commented 3 years ago

No, you should have $auth["session"]="php". I don't know why it's not working. Are you closing the browser and not just a tab?

Original comment by: campbell-m

jberanek commented 3 years ago

It works. Thanks although it won't work when just closing a tab.

James

Original comment by: *anonymous

jberanek commented 3 years ago

Yes, that's right. It won't work when just closing a tab, but that's the way that browsers work.

Original comment by: campbell-m