The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Store Quiz Score In database

Plus d'informations
il y a 12 ans 4 mois #1379 par JohnSmith
Réponse de JohnSmith sur le sujet Store Quiz Score In database
Hi,

What is your application? Are you starting a session after verifying that the user is logged in? You need to create a Xerte session as happens here:

github.com/thexerteproject/xerteonlineto.../auth_config.php#L45

John

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 4 mois - il y a 12 ans 4 mois #1382 par sanjit
Réponse de sanjit sur le sujet Store Quiz Score In database
Hi,
I am using PHP Yii Framework. I have created a view within which xerte is called with an iframe.
I have passed the the session values from this view to xerte (integration.php).
$_SESSION[toolkits_firstname] = $model->first_name;
$_SESSION[toolkits_surname] = $model->last_name;
$_SESSION[toolkits_logon_username] = $model->username;

The code below shows how xerte is called.
<?php
$_SESSION[toolkits_firstname] = $model->first_name;
$_SESSION[toolkits_surname] = $model->last_name;
$_SESSION[toolkits_logon_username] = $model->username;
?>
<iframe src="/talent/xerte" width="100%" height="700"></iframe>

The above session values are taken by integration.php
####################################################################

In the Auth config file authentication method is $xerte_toolkits_site->authentication_method = 'Guest';

I have attached an screen shot of the application.

Regards,
Sanjit
Pièces jointes :
Dernière édition: il y a 12 ans 4 mois par sanjit. Raison: the session values are not showing

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 4 mois - il y a 12 ans 4 mois #1385 par JohnSmith
Réponse de JohnSmith sur le sujet Store Quiz Score In database
There may be other things going on, i'm not sure, in the background...

The Authentication is abstracted out so you might be best trying to create a new file for your environment, such as these:

github.com/thexerteproject/xerteonlineto...Xerte/Authentication

Any of them (other than Moodle - which has a lot more going on in the background in other files) might be a good start...

John
Dernière édition: il y a 12 ans 4 mois par JohnSmith. Raison: Best not to use the Moodle one!!
Les utilisateur(s) suivant ont remercié: sanjit

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.137 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo