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

Store Quiz Score In database

Meer
12 jaren 5 maanden geleden #1379 door JohnSmith
Beantwoord door JohnSmith in topic 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • sanjit
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 5 maanden geleden - 12 jaren 5 maanden geleden #1382 door sanjit
Beantwoord door sanjit in topic 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
Bijlagen:
Laatst bewerkt 12 jaren 5 maanden geleden door sanjit. Reden: the session values are not showing

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 5 maanden geleden - 12 jaren 5 maanden geleden #1385 door JohnSmith
Beantwoord door JohnSmith in topic 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
Laatst bewerkt 12 jaren 5 maanden geleden door JohnSmith. Reden: Best not to use the Moodle one!!
De volgende gebruiker (s) zei dank u: sanjit

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.233 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo