Ticket ID: 23584
|
Creation Date: 7/5/2017 12:00 PM
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 9.1.4033
|
Language: English
|
Views: 31820
|
Last Modification Date: 8/2/2017 9:32 PM
|
Platform:
Windows
|
|
Level: Closed
|
IE: 10.0 |
|
Bug Status: Not Fixed
|
User account: SiteKiosk Restricted User
|
Bug Frequency: Unknown
|
|
Support Request: Use of sessionStorage in javascript
Reproduction
See above
I have the following two functions that I am using to determine whether a customer has already confirmed our terms and conditions pages:
function setConfirmed() {
sessionStorage.setItem("confirmed", "yes");
}
function checkConfirm() {
if(typeof(Storage) !== "undefined") {
if (sessionStorage.confirmed) {
return sessionStorage.getItem("confirmed");
}
else return "";
}
else return "";
}
When I test in chrome on the desktop that work fine. closing the tab causes the storage to be cleared. Everything seems to work fine.
When I test with SiteKiosk setup to use chrome it appears that the sessionStorage variable is never set. checkConfirm() always returns ""
When I test with SiteKiosk setup for IE the sessionStorage is set, but never cleared when the user either logs out or the session times out.
Ideally I would like this to work for Chrome, but would settle for an IE solution as well.
Note this is a Windows 10 setup.