Skip to content

Commit b1c885a

Browse files
committed
Expire mobile guide cookie after 24 hours
See element-hq#9360 This is to prevent it from always working. Cookies without an expiration are supposed to expire at the end of the session, however the nature of mobile browsers means that the session is unlikely to ever end.
1 parent 958260d commit b1c885a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vector/mobile_guide/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {getVectorConfig} from '../getconfig';
22

33
function onBackToRiotClick() {
4-
document.cookie = 'mobile_redirect_to_guide=false;path=/';
4+
// Cookie should expire in 24 hours
5+
document.cookie = 'mobile_redirect_to_guide=false;path=/;max-age=86400';
56
window.location.href = '../';
67
}
78

0 commit comments

Comments
 (0)