You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.
I don't quite understand why are you accessing $_SESSION to get to the current sesskey value in the classes/deviceanalytics_data_storage_class.php. Is not simple sesskey() enough? Note that direct access to superglobals is discouraged in Moodle plugins code.
Also, why are you doing sha1(md5($usersession)); and then MD5 once again? Why not simple use sha1(sesskey()) as the session hash?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't quite understand why are you accessing
$_SESSION
to get to the current sesskey value in theclasses/deviceanalytics_data_storage_class.php
. Is not simplesesskey()
enough? Note that direct access to superglobals is discouraged in Moodle plugins code.Also, why are you doing
sha1(md5($usersession));
and then MD5 once again? Why not simple usesha1(sesskey())
as the session hash?The text was updated successfully, but these errors were encountered: